drm/amdkfd: Fix memory leakage
authorKonstantin Meskhidze <konstantin.meskhidze@huawei.com>
Tue, 29 Nov 2022 04:02:54 +0000 (23:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Nov 2022 16:03:39 +0000 (11:03 -0500)
commit75818afff631e1ea785a82c3e8bb82eb0dee539c
tree907e7c1d78442f0fa888fb3f128675cd657620d7
parent3d271e2e0ad0663b2f064e8e902430c45c11214d
drm/amdkfd: Fix memory leakage

This patch fixes potential memory leakage and seg fault
in  _gpuvm_import_dmabuf() function

Fixes: d4ec4bdc0bd5 ("drm/amdkfd: Allow access for mmapping KFD BOs")
Signed-off-by: Konstantin Meskhidze <konstantin.meskhidze@huawei.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c