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

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: 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 934cb529
No related branches found
No related tags found
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