Commit 0cc936f
committed
io_uring: fix early fdput() of file
A previous commit shuffled some code around, and inadvertently used
struct file after fdput() had been called on it. As we can't touch
the file post fdput() dropping our reference, move the fdput() to
after that has been done.
Cc: Pavel Begunkov <asml.silence@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/io-uring/YPnqM0fY3nM5RdRI@zeniv-ca.linux.org.uk/
Fixes: f2a48dd ("io_uring: refactor io_sq_offload_create()")
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 362a9e6 commit 0cc936f
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7991 | 7991 | | |
7992 | 7992 | | |
7993 | 7993 | | |
7994 | | - | |
7995 | | - | |
| 7994 | + | |
| 7995 | + | |
7996 | 7996 | | |
| 7997 | + | |
| 7998 | + | |
7997 | 7999 | | |
7998 | 8000 | | |
7999 | 8001 | | |
| |||
0 commit comments