Skip to content
Snippets Groups Projects
Commit a5140622 authored by Ethan Carter Edwards's avatar Ethan Carter Edwards Committed by Alex Hung
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>
parent d9240094
Loading
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