drm/amd: use kmalloc_array over kmalloc with multiply
authorBernard Zhao <bernard@vivo.com>
Wed, 31 Mar 2021 13:12:18 +0000 (06:12 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:50:26 +0000 (16:50 -0400)
commitccc4343041f21023a321ba36c5de8dff2ba6121a
tree551d2f950778204e315fe37411216693d50e36b7
parent5a4345270474c886dceee48c5b54b5c2c07aa877
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 <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c