drm/amdkfd: use kvcalloc() instead of kvmalloc() in kfd_migrate
authorYang Wang <KevinYang.Wang@amd.com>
Thu, 21 Apr 2022 12:24:55 +0000 (20:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Apr 2022 18:49:54 +0000 (14:49 -0400)
commitcc9d82fc966bbbd2b73551cdf2d7ac9c6d87e260
tree038a1dd3fcd8b76babd083301c310f9370eaa3d4
parente15c9d06e9ad70df41285ca41d535de6215e0b21
drm/amdkfd: use kvcalloc() instead of kvmalloc() in kfd_migrate

simplify programming with existing functions.

Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c