aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2021-08-14 15:04:40 +0000
committerJens Axboe <[email protected]>2021-08-14 18:38:21 +0000
commit21f965221e7c42609521342403e8fb91b8b3e76e (patch)
treef680b17ee19d8069fafac58f8bcfca3aa4782e75 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parenttools/io_uring/io_uring-cp: sync with liburing example (diff)
downloadkernel-21f965221e7c42609521342403e8fb91b8b3e76e.tar.gz
kernel-21f965221e7c42609521342403e8fb91b8b3e76e.zip
io_uring: only assign io_uring_enter() SQPOLL error in actual error case
If an SQPOLL based ring is newly created and an application issues an io_uring_enter(2) system call on it, then we can return a spurious -EOWNERDEAD error. This happens because there's nothing to submit, and if the caller doesn't specify any other action, the initial error assignment of -EOWNERDEAD never gets overwritten. This causes us to return it directly, even if it isn't valid. Move the error assignment into the actual failure case instead. Cc: [email protected] Fixes: d9d05217cb69 ("io_uring: stop SQPOLL submit on creator's death") Reported-by: Sherlock Holo [email protected] Link: https://github.com/axboe/liburing/issues/413 Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions