io_uring/net: initalize msghdr->msg_inq to known value
authorJens Axboe <axboe@kernel.dk>
Wed, 17 May 2023 18:18:13 +0000 (12:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 May 2023 18:18:13 +0000 (12:18 -0600)
commit88fc8b8463b024df556d5c4245f2c273f22d83a1
tree6335458871dd40108a1a179012d6197cb0d2d9de
parentbf34e697931f64b21c82232e98b3d1f566214e40
io_uring/net: initalize msghdr->msg_inq to known value

We can't currently tell if ->msg_inq was set when we ask for msg_get_inq,
initialize it to -1U so we can tell apart if it was set and there's
no data left, or if it just wasn't set at all by the protocol.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c