Skip to content

Commit 64a2b6e

Browse files
mbrost05lucasdemarchi
authored andcommitted
drm/xe: Drop VM dma-resv lock on xe_sync_in_fence_get failure in exec IOCTL
Upon failure all locks need to be dropped before returning to the user. Fixes: 58480c1 ("drm/xe: Skip VMAs pin when requesting signal to the last XE_EXEC") Cc: <[email protected]> Signed-off-by: Matthew Brost <[email protected]> Reviewed-by: Tejas Upadhyay <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 7d1a425) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent af797b8 commit 64a2b6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/xe/xe_exec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ int xe_exec_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
224224
fence = xe_sync_in_fence_get(syncs, num_syncs, q, vm);
225225
if (IS_ERR(fence)) {
226226
err = PTR_ERR(fence);
227+
xe_vm_unlock(vm);
227228
goto err_unlock_list;
228229
}
229230
for (i = 0; i < num_syncs; i++)

0 commit comments

Comments
 (0)