]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: change kzalloc to kcalloc in dml1_validate()
authorEthan Carter Edwards <ethan@ethancedwards.com>
Thu, 27 Feb 2025 23:16:24 +0000 (18:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Mar 2025 17:36:17 +0000 (13:36 -0400)
commit315ce6c41aa9b913461a3e018ce7516435245787
tree1bb99b64f93724d930d356b2b5942142e4872257
parentb17a94f2fe8225e47c8efe770c6c246488c76a20
drm/amd/display: change kzalloc to kcalloc in dml1_validate()

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>
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c