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: NDipanjan Das <mail.dipanjan.das@gmail.com> Fixes: c7fb1942 ("io_uring: add support for ring mapped supplied buffers") Signed-off-by: NDylan Yudaken <dylany@fb.com> Reviewed-by: NPavel 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: NJens Axboe <axboe@kernel.dk>
Showing
想要评论请 注册 或 登录