diff --git a/fs/io_uring.c b/fs/io_uring.c index 678a1b245e10..a3c75aff8d10 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1862,9 +1862,6 @@ static int io_prep_rw(struct io_kiocb *req, const struct io_uring_sqe *sqe, unsigned ioprio; int ret; - if (!req->file) - return -EBADF; - if (S_ISREG(file_inode(req->file)->i_mode)) req->flags |= REQ_F_ISREG;