]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
io_uring/net: use 'ctx' consistently
authorJens Axboe <axboe@kernel.dk>
Tue, 17 Mar 2026 20:18:04 +0000 (14:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 17 Mar 2026 20:35:00 +0000 (14:35 -0600)
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>
io_uring/net.c

index 3f9d08b78c21fee3b844947c27a9749c8d0f84a0..b3f73883a24cf4a60d70ccfce277ae869a1d7628 100644 (file)
@@ -1375,7 +1375,7 @@ int io_send_zc_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
        if (zc->msg_flags & MSG_DONTWAIT)
                req->flags |= REQ_F_NOWAIT;
 
-       if (io_is_compat(req->ctx))
+       if (io_is_compat(ctx))
                zc->msg_flags |= MSG_CMSG_COMPAT;
 
        iomsg = io_msg_alloc_async(req);