Skip to content
Commit ec8516f3 authored by Dylan Yudaken's avatar Dylan Yudaken Committed by Jens Axboe
Browse files

io_uring: fix free of unallocated buffer list



in the error path of io_register_pbuf_ring, only free bl if it was
allocated.

Reported-by: default avatarDipanjan Das <mail.dipanjan.das@gmail.com>
Fixes: c7fb1942

 ("io_uring: add support for ring mapped supplied buffers")
Signed-off-by: default avatarDylan Yudaken <dylany@fb.com>
Reviewed-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/all/CANX2M5bXKw1NaHdHNVqssUUaBCs8aBpmzRNVEYEvV0n44P7ioA@mail.gmail.com/
Link: https://lore.kernel.org/all/CANX2M5YiZBXU3L6iwnaLs-HHJXRvrxM8mhPDiMDF9Y9sAvOHUA@mail.gmail.com/
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d785a773
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