]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix memory leakage
authorKonstantin Meskhidze <konstantin.meskhidze@huawei.com>
Tue, 29 Nov 2022 04:02:54 +0000 (23:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:19 +0000 (13:32 +0100)
commitd1afc890cc9a9fd77d648231a88888030e3e53ad
treea08b13f8cf3a2d93039075888b27b89c0fd93be0
parent6f9d54ca2e01e136abc18d38706ed821d974979f
drm/amdkfd: Fix memory leakage

[ Upstream commit ba861b015f67a7f3ba7fb31608727ceb926a7b14 ]

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

Fixes: 6abc52980c99 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c