Skip to content

Commit d604358

Browse files
alexsierragalexdeucher
authored andcommitted
drm/amdkfd: drop process ref count when xnack disable
During svm restore pages interrupt handler, kfd_process ref count was never dropped when xnack was disabled. Therefore, the object was never released. Fixes: 2383f56 ("drm/amdkfd: page table restore through svm API") Signed-off-by: Alex Sierra <[email protected]> Reviewed-by: Philip Yang <[email protected]> Reviewed-by: Jonathan Kim <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 7884d0e commit d604358

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_svm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2484,7 +2484,8 @@ svm_range_restore_pages(struct amdgpu_device *adev, unsigned int pasid,
24842484
}
24852485
if (!p->xnack_enabled) {
24862486
pr_debug("XNACK not enabled for pasid 0x%x\n", pasid);
2487-
return -EFAULT;
2487+
r = -EFAULT;
2488+
goto out;
24882489
}
24892490
svms = &p->svms;
24902491

0 commit comments

Comments
 (0)