io_uring: allow 0 length for buffer select
authorDylan Yudaken <dylany@fb.com>
Thu, 30 Jun 2022 09:12:20 +0000 (02:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:46:58 +0000 (08:46 -0600)
commit527adb7ef32c5dcb89a99a1cea3f63010bcde8df
tree0544f18dd167dbfa377d89b0bbe321584e5f7c7d
parent9b6b055e054ad8c8e1e64f7422059640dacf7c4d
io_uring: allow 0 length for buffer select

If user gives 0 for length, we can set it from the available buffer size.

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220630091231.1456789-2-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c