public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH] io_uring: Remove superfluous check for sqe->off in io_connect()
@ 2019-11-25 22:09 Hrvoje Zeba
  2019-11-25 22:18 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Hrvoje Zeba @ 2019-11-25 22:09 UTC (permalink / raw)
  To: io-uring; +Cc: Hrvoje Zeba

This field contains addrlen value and checking to see if it's set
returns -EINVAL.

Signed-off-by: Hrvoje Zeba <[email protected]>
---
 fs/io_uring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/io_uring.c b/fs/io_uring.c
index 8cb8f3898c77..f5e81b5511e1 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -1998,7 +1998,7 @@ static int io_connect(struct io_kiocb *req, const struct io_uring_sqe *sqe,
 
 	if (unlikely(req->ctx->flags & (IORING_SETUP_IOPOLL|IORING_SETUP_SQPOLL)))
 		return -EINVAL;
-	if (sqe->ioprio || sqe->off || sqe->len || sqe->buf_index ||
+	if (sqe->ioprio || sqe->len || sqe->buf_index ||
 	    sqe->rw_flags)
 		return -EINVAL;
 
-- 
2.24.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-25 22:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-25 22:09 [PATCH] io_uring: Remove superfluous check for sqe->off in io_connect() Hrvoje Zeba
2019-11-25 22:18 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox