Skip to content
Commit e71d7c56 authored by Hao Xu's avatar Hao Xu Committed by Pavel Begunkov
Browse files

io_uring: openclose: fix bug of closing wrong fixed file



Don't update ret until fixed file is closed, otherwise the file slot
becomes the error code.

Fixes: a7c41b46 ("io_uring: let IORING_OP_FILES_UPDATE support choosing fixed file slots")
Signed-off-by: default avatarHao Xu <howeyxu@tencent.com>
[pavel: 5.19 rebase]
Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
parent 05b538c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment