Skip to content
Snippets Groups Projects
Commit 3ed159c9 authored by Anuj Gupta's avatar Anuj Gupta Committed by Jens Axboe
Browse files

io_uring: fix error handling for io_uring_cmd


Commit 97b388d7 ("io_uring: handle completions in the core") moved the
error handling from handler to core. But for io_uring_cmd handler we end
up completing more than once (both in handler and in core) leading to
use_after_free.
Change io_uring_cmd handler to avoid calling io_uring_cmd_done in case
of error.

Fixes: 97b388d7 ("io_uring: handle completions in the core")
Signed-off-by: default avatarAnuj Gupta <anuj20.g@samsung.com>
Signed-off-by: default avatarKanchan Joshi <joshi.k@samsung.com>
Link: https://lore.kernel.org/r/20220811091459.6929-1-anuj20.g@samsung.com


[axboe: fix ret vs req typo]
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d1f6222c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment