Skip to content

Commit a98b959

Browse files
committed
Merge tag 'io_uring-6.6-2023-09-28' of git://git.kernel.dk/linux
Pull io_uring fix from Jens Axboe: "A single fix going to stable for the IORING_OP_LINKAT flag handling" * tag 'io_uring-6.6-2023-09-28' of git://git.kernel.dk/linux: io_uring/fs: remove sqe->rw_flags checking from LINKAT
2 parents 1c84724 + a52d4f6 commit a98b959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io_uring/fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ int io_linkat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
243243
struct io_link *lnk = io_kiocb_to_cmd(req, struct io_link);
244244
const char __user *oldf, *newf;
245245

246-
if (sqe->rw_flags || sqe->buf_index || sqe->splice_fd_in)
246+
if (sqe->buf_index || sqe->splice_fd_in)
247247
return -EINVAL;
248248
if (unlikely(req->flags & REQ_F_FIXED_FILE))
249249
return -EBADF;

0 commit comments

Comments
 (0)