]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/gud: Use kmalloc_array() instead of kmalloc()
authorMehdi Ben Hadj Khelifa <mehdi.benhadjkhelifa@gmail.com>
Tue, 7 Oct 2025 08:32:40 +0000 (09:32 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 10 Oct 2025 07:28:30 +0000 (09:28 +0200)
commit6035258463167e2cda7af64669f925a43e0b7e88
tree9a2929e3dbd57d449e9036824ba0a8f5641fa358
parentd847dc29d07a18911837863c88206547a1768d21
drm/gud: Use kmalloc_array() instead of kmalloc()

Replace kmalloc with kmalloc array in drm/gud/gud_pipe.c since the
calculation inside kmalloc is dynamic 'width * height'

Signed-off-by: Mehdi Ben Hadj Khelifa <mehdi.benhadjkhelifa@gmail.com>
Acked-by: Ruben Wauters <rubenru09@aol.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20251007083320.29018-1-mehdi.benhadjkhelifa@gmail.com
drivers/gpu/drm/gud/gud_pipe.c