drm/amdkfd: Add missing NULL check in svm_range_map_to_gpu
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 4 Apr 2022 21:25:23 +0000 (17:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Apr 2022 14:14:46 +0000 (10:14 -0400)
commit96621ca578dbadeb12bd190e0733cdc5c76899d8
tree3824681cd5e6483d070c689f6c7eb7eb6f21fac7
parent78174f477081b61b21c6f8b616234b00ce556840
drm/amdkfd: Add missing NULL check in svm_range_map_to_gpu

bo_adev is NULL for system memory mapping to GPU.

Fixes: 30671b44aa570a ("drm/amdgpu: fix TLB flushing during eviction")
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c