diff --git a/fs/io_uring.c b/fs/io_uring.c index adb5cd4b760d7eda7d9f06a214ba4c978eaf27a8..db6680bb02d3a8bd5667751a79bfb3c068b19c29 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -4599,9 +4599,6 @@ static int io_sfr_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) { struct io_ring_ctx *ctx = req->ctx; - if (!req->file) - return -EBADF; - if (unlikely(ctx->flags & IORING_SETUP_IOPOLL)) return -EINVAL; if (unlikely(sqe->addr || sqe->ioprio || sqe->buf_index))