io_uring/net: use proper value for msg_inq
authorJens Axboe <axboe@kernel.dk>
Tue, 27 Jun 2023 18:05:01 +0000 (12:05 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Jun 2023 22:07:24 +0000 (16:07 -0600)
commitb65db9211ecb7f8383e02dcf71b8c1e9c7043a40
tree01893799662e8297a04a676764245e8d1a675818
parent1ef6663a587ba3e57dc5065a477db1c64481eedd
io_uring/net: use proper value for msg_inq

struct msghdr->msg_inq is a signed type, yet we attempt to store what
is essentially an unsigned bitmask in there. We only really need to know
if the field was stored or not, but let's use the proper type to avoid
any misunderstandings on what is being attempted here.

Link: https://lore.kernel.org/io-uring/CAHk-=wjKb24aSe6fE4zDH-eh8hr-FB9BbukObUVSMGOrsBHCRQ@mail.gmail.com/
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c