Skip to contentSkip to conversation

drm/amdkfd: Unreserve bo if queue update failed

PATCH New Alex Deucher 1 participant 1 message Mar 6

Subsystems (3)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdkfd: Unreserve bo if queue update failed

From: Philip Yang <[email protected]>

Error handling path should unreserve bo then return failed.

Fixes 305cd109b761 ("drm/amdkfd: Validate user queue update")
---
 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c +1 -0
index 449be58e884c0..ef334b21bd2d7 100644
@@ -593,6 +593,7 @@ int pqm_update_queue_properties(struct process_queue_manager *pqm,
 					 p->queue_size)) {
 			pr_debug("ring buf 0x%llx size 0x%llx not mapped on GPU\n",
 				 p->queue_address, p->queue_size);
+			amdgpu_bo_unreserve(vm->root.bo);
 			return -EFAULT;
 		}
 
Signature · 1 line
2.53.0