diff options
author | Bernard Zhao <bernard@vivo.com> | 2020-11-17 18:42:29 -0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-11-24 12:04:28 -0500 |
commit | b14a04fee90889b011509fe6ade1ddf93fdd9f49 (patch) | |
tree | 99d06246c7ed24ac6505eb567bbf326f2efb8643 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | a76087cf97afe49a30ba3970a2052ef0f260eebf (diff) |
amdgpu/amdgpu_ids: fix kmalloc_array not uses number as first arg
Fix check_patch.pl warning:
kmalloc_array uses number as first arg, sizeof is generally wrong.
+fences = kmalloc_array(sizeof(void *), id_mgr->num_ids,
GFP_KERNEL);
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions