2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/vkms
Kees Cook 258aebf100
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 <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>
2025-05-06 10:17:00 +02:00
..
tests drm/vkms: Allow to attach connectors and encoders 2025-03-07 10:58:28 +01:00
Kconfig drm/vkms: Add KUnit test scaffolding 2025-03-07 10:58:20 +01:00
Makefile drm/vkms: Extract vkms_config header 2025-03-07 10:58:21 +01:00
vkms_composer.c drm/vkms: Round fixp2int conversion in lerp_u16 2025-02-25 16:15:55 +01:00
vkms_config.c drm/vkms: Allow to attach connectors and encoders 2025-03-07 10:58:28 +01:00
vkms_config.h drm/vkms: Allow to attach connectors and encoders 2025-03-07 10:58:28 +01:00
vkms_connector.c drm/vkms: Allow to configure multiple connectors 2025-03-07 10:58:28 +01:00
vkms_connector.h drm/vkms: Create vkms_connector struct 2025-03-07 10:58:19 +01:00
vkms_crtc.c drm/vkms: Adjust vkms_state->active_planes allocation type 2025-05-06 10:17:00 +02:00
vkms_drv.c drm/vkms: Allow to attach planes and CRTCs 2025-03-07 10:58:26 +01:00
vkms_drv.h drm/vkms: Set device name from vkms_config 2025-03-07 10:58:22 +01:00
vkms_formats.c drm/vkms: Add support for ABGR8888 pixel format 2025-02-04 14:44:13 +01:00
vkms_formats.h drm/vkms: Re-introduce line-per-line composition algorithm 2024-11-22 14:00:08 +01:00
vkms_output.c drm/vkms: Allow to attach connectors and encoders 2025-03-07 10:58:28 +01:00
vkms_plane.c drm/vkms: Add support for ABGR8888 pixel format 2025-02-04 14:44:13 +01:00
vkms_writeback.c drm/vkms: Add support for ABGR8888 pixel format 2025-02-04 14:44:13 +01:00