mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
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>
This commit is contained in:
parent
74dbc0bab5
commit
0a6b9ae1f3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user