diff options
| author | Kees Cook <[email protected]> | 2025-04-26 06:14:32 +0000 |
|---|---|---|
| committer | Louis Chauvet <[email protected]> | 2025-05-06 08:17:00 +0000 |
| commit | 258aebf100540d36aba910f545d4d5ddf4ecaf0b (patch) | |
| tree | fc5864a29ab1b410a3734aa0128122af7949b2b3 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | Merge drm/drm-next into drm-misc-next (diff) | |
| download | kernel-258aebf100540d36aba910f545d4d5ddf4ecaf0b.tar.gz kernel-258aebf100540d36aba910f545d4d5ddf4ecaf0b.zip | |
drm/vkms: Adjust vkms_state->active_planes allocation type
In preparation for making the kmalloc family of allocators type aware,
we need to make sure that the returned type from the allocation matches
the type of the variable being assigned. (Before, the allocator would
always return "void *", which can be implicitly cast to any pointer type.)
The assigned type is "struct vkms_plane_state **", but the returned type
will be "struct drm_plane **". These are the same size (pointer size), but
the types don't match. Adjust the allocation type to match the assignment.
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Louis Chauvet <[email protected]>
Fixes: 8b1865873651 ("drm/vkms: totally reworked crc data tracking")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Louis Chauvet <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
