aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorBernard Zhao <bernard@vivo.com>2020-11-17 18:55:01 -0800
committerAlex Deucher <alexander.deucher@amd.com>2020-11-24 12:04:39 -0500
commit95666c6cfe9247610efbd68c228f0831d4c18a51 (patch)
tree842a47e554b2d8ea0c84aee29737be8d2bcfade1 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentamdgpu/amdgpu_ids: fix kmalloc_array not uses number as first arg (diff)
downloadlinux-95666c6cfe9247610efbd68c228f0831d4c18a51.tar.gz
linux-95666c6cfe9247610efbd68c228f0831d4c18a51.zip
amd/amdgpu: use kmalloc_array to replace kmalloc with multiply
Fix check_patch.pl warning: WARNING: Prefer kmalloc_array over kmalloc with multiply +bps = kmalloc(align_space * sizeof((*data)->bps), GFP_KERNEL); WARNING: Prefer kmalloc_array over kmalloc with multiply +bps_bo = kmalloc(align_space * sizeof((*data)->bps_bo), GFP_KERNEL); kmalloc_array has multiply overflow check, which will be safer. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Bernard Zhao <bernard@vivo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions