mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
io_uring: fix splice_fd_in checks backport typo
The linux-5.10.y backport of commit "io_uring: add ->splice_fd_in checks"
includes a typo: "|" where "||" should be. (The original upstream commit
is fine.)
Fixes: 54eb6211b9 ("io_uring: add ->splice_fd_in checks")
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: stable@vger.kernel.org # v5.10
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b6f32897af
commit
f59da9f7ef
|
|
@ -5559,7 +5559,7 @@ static int io_timeout_remove_prep(struct io_kiocb *req,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
if (unlikely(req->flags & (REQ_F_FIXED_FILE | REQ_F_BUFFER_SELECT)))
|
if (unlikely(req->flags & (REQ_F_FIXED_FILE | REQ_F_BUFFER_SELECT)))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
if (sqe->ioprio || sqe->buf_index || sqe->len || sqe->timeout_flags |
|
if (sqe->ioprio || sqe->buf_index || sqe->len || sqe->timeout_flags ||
|
||||||
sqe->splice_fd_in)
|
sqe->splice_fd_in)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user