Skip to content
Snippets Groups Projects
Commit 315ce6c4 authored by Ethan Carter Edwards's avatar Ethan Carter Edwards Committed by Alex Deucher
Browse files

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: default avatarRodrigo Siqueira <siqueira@igalia.com>
Reviewed-by: default avatarAlex Hung <alex.hung@amd.com>
Signed-off-by: default avatarEthan Carter Edwards <ethan@ethancedwards.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b17a94f2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment