diff --git a/fs/io_uring.c b/fs/io_uring.c index c422f255b51be383202af23214d916d55a9de972..797874f215b1a3891d7a8ab6d086e06a0b2f1036 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3048,9 +3048,7 @@ static ssize_t io_iov_buffer_select(struct io_kiocb *req, struct iovec *iov, iov[0].iov_len = kbuf->len; return 0; } - if (!req->rw.len) - return 0; - else if (req->rw.len > 1) + if (req->rw.len != 1) return -EINVAL; #ifdef CONFIG_COMPAT