diff options
| author | Bernard Zhao <[email protected]> | 2021-03-31 13:12:18 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-04-09 20:50:26 +0000 |
| commit | ccc4343041f21023a321ba36c5de8dff2ba6121a (patch) | |
| tree | 551d2f950778204e315fe37411216693d50e36b7 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/amdgpu: support sdma error injection (diff) | |
| download | kernel-ccc4343041f21023a321ba36c5de8dff2ba6121a.tar.gz kernel-ccc4343041f21023a321ba36c5de8dff2ba6121a.zip | |
drm/amd: use kmalloc_array over kmalloc with multiply
Fix patch check warning:
WARNING: Prefer kmalloc_array over kmalloc with multiply
+ buf = kmalloc(MAX_KFIFO_SIZE * sizeof(*buf), GFP_KERNEL);
Signed-off-by: Bernard Zhao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
