Skip to content
Commit 3a87e264 authored by Guixin Liu's avatar Guixin Liu Committed by Jens Axboe
Browse files

io_uring: fix memory leak when cache init fail



Exit the percpu ref when cache init fails to free the data memory with
in struct percpu_ref.

Fixes: 206aefde ("io_uring: reduce/pack size of io_ring_ctx")
Signed-off-by: default avatarGuixin Liu <kanie@linux.alibaba.com>
Reviewed-by: default avatarGabriel Krisman Bertazi <krisman@suse.de>
Link: https://lore.kernel.org/r/20240923100512.64638-1-kanie@linux.alibaba.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6fa6588e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment