]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm: Adjust msm_iommu_pagetable_prealloc_allocate() allocation type
authorKees Cook <kees@kernel.org>
Fri, 6 Feb 2026 22:21:52 +0000 (14:21 -0800)
committerKees Cook <kees@kernel.org>
Thu, 19 Feb 2026 18:07:01 +0000 (10:07 -0800)
commit48634a9ea06a453a3f0635a7063dcc63f6729436
treebd9972071f350ef44be136cfe6dee953bc0e68c4
parenta3fab954405e61f593f57bdb3510e304c6a0aa80
drm/msm: Adjust msm_iommu_pagetable_prealloc_allocate() 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 "void **" but the returned type will be "void ***".
These are the same allocation size (pointer size), but the types do not
match. Adjust the allocation type to match the assignment.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20260206222151.work.016-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
drivers/gpu/drm/msm/msm_iommu.c