Skip to content
Snippets Groups Projects
Commit 0d016e8a authored by Ethan Carter Edwards's avatar Ethan Carter Edwards Committed by Alex Hung
Browse files

drm/amd/display: change kzalloc to kcalloc in dcn31_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: 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 6a5d3359
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