drm/amdkfd: Unreserve bo if queue update failed
Subsystems (3)
Alex Deucher
maintainerPATCH 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")
Signed-off-by Philip Yang <[email protected]>
Reviewed-by Alex Sierra <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- 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
@@ -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