diff --git a/fs/io_uring.c b/fs/io_uring.c index 620a11f9795a..9f65ec8a78fe 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -5347,8 +5347,6 @@ static int io_poll_add_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe return -EINVAL; if (sqe->addr || sqe->ioprio || sqe->off || sqe->len || sqe->buf_index) return -EINVAL; - if (!poll->file) - return -EBADF; events = READ_ONCE(sqe->poll32_events); #ifdef __BIG_ENDIAN