Skip to content
Commit f50e5d67 authored by Yang Yingliang's avatar Yang Yingliang Committed by Jens Axboe
Browse files

ublk_drv: fix missing error return code in ublk_add_dev()



If blk_mq_init_queue() fails, it should return error code in ublk_add_dev()

Fixes: cebbe577 ("ublk_drv: fix request queue leak")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220718042408.3132835-1-yangyingliang@huawei.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f2450f8a
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