diff options
| author | Ethan Carter Edwards <[email protected]> | 2025-02-27 23:16:23 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-03-10 17:36:14 +0000 |
| commit | b17a94f2fe8225e47c8efe770c6c246488c76a20 (patch) | |
| tree | 8aa805564ea07d901acb6e3caf3daaf496d53512 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | drm/amd/display: change kzalloc to kcalloc in dcn31_validate_bandwidth() (diff) | |
| download | kernel-b17a94f2fe8225e47c8efe770c6c246488c76a20.tar.gz kernel-b17a94f2fe8225e47c8efe770c6c246488c76a20.zip | |
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: Rodrigo Siqueira <[email protected]>
Reviewed-by: Alex Hung <[email protected]>
Signed-off-by: Ethan Carter Edwards <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
