aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>2023-08-18 11:57:03 +0530
committerAlex Deucher <alexander.deucher@amd.com>2023-08-30 15:20:02 -0400
commitf54e1d47e0204d73c29993deecd81d60bbbfc830 (patch)
tree14a1b962c1b80054d8e25aea5bcf08f5cf978bab /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parente0e1764a3a05ff2d3f60ae42feccd43f0d546d39 (diff)
downloadlinux-f54e1d47e0204d73c29993deecd81d60bbbfc830.tar.gz
linux-f54e1d47e0204d73c29993deecd81d60bbbfc830.tar.bz2
linux-f54e1d47e0204d73c29993deecd81d60bbbfc830.zip
drm/amdgpu: Fix kcalloc over kzalloc in 'gmc_v9_0_init_mem_ranges'
Replace kzalloc(n * sizeof(...), ...) with kcalloc(n, sizeof(...), ...) since kcalloc is the preferred API in case of allocating with multiply. Fixes the below: WARNING: Prefer kcalloc over kzalloc with multiply Cc: Guchun Chen <guchun.chen@amd.com> Cc: Christian König <christian.koenig@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions