summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
diff options
context:
space:
mode:
authorEthan Carter Edwards <ethan@ethancedwards.com>2025-02-28 02:16:23 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-03-10 20:36:14 +0300
commitb17a94f2fe8225e47c8efe770c6c246488c76a20 (patch)
tree8aa805564ea07d901acb6e3caf3daaf496d53512 /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
parent934cb529e90c57f5766668fe13624624dae1d790 (diff)
downloadlinux-b17a94f2fe8225e47c8efe770c6c246488c76a20.tar.xz
drm/amd/display: change kzalloc to kcalloc in dcn314_validate_bandwidth()
We are trying to get rid of all multiplications from allocation functions to prevent integer overflows. Here the multiplication is probably safe, but using kcalloc() is more appropriate and improves readability. This patch has no effect on runtime behavior. Reviewed-by: Rodrigo Siqueira <siqueira@igalia.com> Reviewed-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.c')
0 files changed, 0 insertions, 0 deletions