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>
Mon, 25 Jul 2022 00:39:16 +0000 (18:39 -0600)
commitb8c015598c8ef9195b8a2a5089e275c4f64ca999
tree3bfe11619a9637eab9265ee91462eb60fb84618c
parent6e73dffbb93cb8797cd4e42e98d837edf0f1a967
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