summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorJames Flowers <bold.zone2373@fastmail.com>2025-09-14 00:38:22 -0700
committerJavier Martinez Canillas <javierm@redhat.com>2025-09-17 12:16:19 +0200
commit940dd88c5f5bdb1f3e19873a856a677ebada63a9 (patch)
treeb15b6477964234a84a4c24b784bd25c44216c45d /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parent4db6e24f565b60a05c762554c05d37f780fe4406 (diff)
drm/ssd130x: Use kmalloc_array() instead of kmalloc()
Documentation/process/deprecated.rst recommends against the use of kmalloc with dynamic size calculations due to the risk of overflow and smaller allocation being made than the caller was expecting. kmalloc_array avoids this issue. Signed-off-by: James Flowers <bold.zone2373@fastmail.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://lore.kernel.org/r/20250914073841.69582-1-bold.zone2373@fastmail.com Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions