io_uring/rsrc: clean up buffer cloning arg validation
authorJoanne Koong <joannelkoong@gmail.com>
Thu, 4 Dec 2025 21:51:14 +0000 (13:51 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Dec 2025 22:46:13 +0000 (15:46 -0700)
commitb8201b50e403815f941d1c6581a27fdbfe7d0fd4
tree91a5b47b628c7dff0ad1a75aed79bbe9d4942251
parentf345be751b961ce91e0b883345eaa1d0993a4949
io_uring/rsrc: clean up buffer cloning arg validation

Get rid of some redundant checks and move the src arg validation to
before the buffer table allocation, which simplifies error handling.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c