io_uring: fix types in io_recvmsg_multishot_overflow
authorDylan Yudaken <dylany@fb.com>
Fri, 15 Jul 2022 13:02:52 +0000 (06:02 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:18 +0000 (18:39 -0600)
commit9b0fc3c054ff2eb13753104884f1045b5bb3a627
treef6090d92c971de24e4d8cc5aaf1c4fad27eaf510
parent4ccc6db0900fe337212b61650663a5dcedb69f25
io_uring: fix types in io_recvmsg_multishot_overflow

io_recvmsg_multishot_overflow had incorrect types on non x64 system.
But also it had an unnecessary INT_MAX check, which could just be done
by changing the type of the accumulator to int (also simplifying the
casts).

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: a8b38c4ce724 ("io_uring: support multishot in recvmsg")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220715130252.610639-1-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c