]> git.baikalelectronics.ru Git - kernel.git/commit
amdgpu/amdgpu_ids: fix kmalloc_array not uses number as first arg
authorBernard Zhao <bernard@vivo.com>
Wed, 18 Nov 2020 02:42:29 +0000 (18:42 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:04:28 +0000 (12:04 -0500)
commit0b8e768bc63a70ddf9e153114bf7607f505fb9c8
tree99d06246c7ed24ac6505eb567bbf326f2efb8643
parent1a4c324a37393ae0ecabc9707326244da73f6bbe
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c