]> Gentwo Git Trees - linux/.git/commit
io_uring: sanity check sizes before attempting allocation
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Oct 2025 13:23:18 +0000 (14:23 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Oct 2025 16:37:56 +0000 (10:37 -0600)
commit284306f6e6045e3f7b932914d1368df90033e87e
treeb53de5421deda8a02772d00ffe62d41f3a3a606c
parent12aced0a551e18f2162091e388c3a36ea75ccb13
io_uring: sanity check sizes before attempting allocation

It's a good practice to validate parameters before doing any heavy stuff
like queue allocations. Do that for io_allocate_scq_urings().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c