drm/amdkfd: Use kmemdup instead of duplicating its function
authorzhong jiang <zhongjiang@huawei.com>
Tue, 18 Sep 2018 15:35:32 +0000 (23:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:20:36 +0000 (14:20 -0500)
commit6dfeb11a4b48e4994ac9e22eef5720f17d1f3502
tree7e10e783984f63754a4272b8cc55d71f6306fcc1
parent651022382c7f8da46cb4872a545ee1da6d097d2a
drm/amdkfd: Use kmemdup instead of duplicating its function

kmemdup has implemented the function that kmalloc() + memcpy().
We prefer to kmemdup rather than code opened implementation.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c