]> Gentwo Git Trees - linux/.git/commit
drm/amdkfd: fix the clean up when amdgpu_hmm_range_alloc fails
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 24 Oct 2025 16:59:00 +0000 (22:29 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2025 14:00:35 +0000 (10:00 -0400)
commit1017e393ad6d61756f7f35a6eb059a42a40818e6
tree1d9c44b740b40a11f56d353ea00389c7f277d452
parenta0559012a18a5a6ad87516e982892765a403b8ab
drm/amdkfd: fix the clean up when amdgpu_hmm_range_alloc fails

we need to unreserve the bo's too during clean up along
with freeing the memory of context.

Fixes: 7bb02a34c2ba ("drm/amdkfd: add missing return value check for range")
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c