Skip to content

Commit 0a6b9ae

Browse files
committed
io_uring/net: use 'ctx' consistently
There's already a local ctx variable, use it for the io_is_compat() check as well. Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 74dbc0b commit 0a6b9ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ int io_send_zc_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
13751375
if (zc->msg_flags & MSG_DONTWAIT)
13761376
req->flags |= REQ_F_NOWAIT;
13771377

1378-
if (io_is_compat(req->ctx))
1378+
if (io_is_compat(ctx))
13791379
zc->msg_flags |= MSG_CMSG_COMPAT;
13801380

13811381
iomsg = io_msg_alloc_async(req);

0 commit comments

Comments
 (0)