[PATCH] drm/vkms: Adjust vkms_state->active_planes allocation type
Louis Chauvet
contact at louischauvet.fr
Tue May 6 08:23:54 UTC 2025
On Fri, 25 Apr 2025 23:14:32 -0700, Kees Cook wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] drm/vkms: Adjust vkms_state->active_planes allocation type
commit: 258aebf100540d36aba910f545d4d5ddf4ecaf0b
Best regards,
--
Louis Chauvet <contact at louischauvet.fr>
More information about the dri-devel
mailing list