Skip to content

Commit 2ce75a0

Browse files
amd-yangpalexdeucher
authored andcommitted
drm/amdkfd: Unreserve bo if queue update failed
Error handling path should unreserve bo then return failed. Fixes: 305cd10 ("drm/amdkfd: Validate user queue update") Signed-off-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Alex Sierra <alex.sierra@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit c24afed)
1 parent becbab4 commit 2ce75a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ int pqm_update_queue_properties(struct process_queue_manager *pqm,
593593
p->queue_size)) {
594594
pr_debug("ring buf 0x%llx size 0x%llx not mapped on GPU\n",
595595
p->queue_address, p->queue_size);
596+
amdgpu_bo_unreserve(vm->root.bo);
596597
return -EFAULT;
597598
}
598599

0 commit comments

Comments
 (0)