Skip to content
Commit eb065d30 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: io_allocate_scq_urings() should return a sane state



We currently rely on the ring destroy on cleaning things up in case of
failure, but io_allocate_scq_urings() can leave things half initialized
if only parts of it fails.

Be nice and return with either everything setup in success, or return an
error with things nicely cleaned up.

Reported-by: default avatar <syzbot+0d818c0d39399188f393@syzkaller.appspotmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent bbad27b2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment