linux/drivers/gpu/drm/vkms
Kees Cook c4487e35d3 drm/vkms: Adjust vkms_state->active_planes allocation type
[ Upstream commit 258aebf100 ]

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 <kees@kernel.org>
Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Fixes: 8b18658736 ("drm/vkms: totally reworked crc data tracking")
Link: https://lore.kernel.org/r/20250426061431.work.304-kees@kernel.org
Signed-off-by: Louis Chauvet <contact@louischauvet.fr>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-06-19 15:31:38 +02:00
..
Kconfig drm/vkms: Create separate Kconfig file for VKMS 2024-01-02 12:04:54 -01:00
Makefile drm: vkms: Refactor the plane composer to accept new formats 2022-09-05 20:18:35 -01:00
vkms_composer.c drm/vkms: Round fixp2int conversion in lerp_u16 2025-03-22 12:54:20 -07:00
vkms_crtc.c drm/vkms: Adjust vkms_state->active_planes allocation type 2025-06-19 15:31:38 +02:00
vkms_drv.c drm/vkms: Fix use after free and double free on init error 2025-04-10 14:39:14 +02:00
vkms_drv.h drm/vkms: Remove event from vkms_output 2024-07-07 15:03:54 -03:00
vkms_formats.c drm/vkms: Fix cpu_to_le16()/le16_to_cpu() warnings 2024-08-08 10:04:13 +02:00
vkms_formats.h drm/vkms: Isolate writeback pixel conversion functions 2023-06-24 19:06:16 -03:00
vkms_output.c drm/vkms: Drop unnecessary call to drm_crtc_cleanup() 2024-12-05 14:01:52 +01:00
vkms_plane.c drm/vkms: add rotate-270 property 2023-05-08 09:57:20 -03:00
vkms_writeback.c drm/vkms: move wb's atomic_check from encoder to connector 2023-12-08 10:24:30 +01:00