]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Use kvfree in destroy_crat_image
authorKent Russell <kent.russell@amd.com>
Wed, 14 Oct 2020 11:47:32 +0000 (07:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Oct 2020 19:14:45 +0000 (15:14 -0400)
commit9f2ff60d9f775a28d09354e410cf891a8891fcd9
tree8978582df43f97160748bfc8d034b19bd79cc863
parentab9a9547d79870565a449a1343d9521349bbe58e
drm/amdkfd: Use kvfree in destroy_crat_image

Now that we use kvmalloc for the crat_image, we need to use kvfree when
we destroy this.

Fixes: d48d68b684a547 ("drm/amdkfd: Use kvmalloc instead of kmalloc for VCRAT")
Reported-by: Morris Zhang <shiwu.zhang@amd.clm>
Signed-off-by: Kent Russell <kent.russell@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_crat.c