]> git.baikalelectronics.ru Git - kernel.git/commit
ublk_drv: fix missing error return code in ublk_add_dev()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 18 Jul 2022 04:24:08 +0000 (12:24 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Jul 2022 19:10:22 +0000 (13:10 -0600)
commit5e18478a60d74f741b726cc93693ed7a6f917f86
tree59d94d0eb99b5d3ddf87feb1fdc7d38eb69d8c3e
parent291defff548ea074980ec6de32964985b2eeb2ca
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: e40cb4715158 ("ublk_drv: fix request queue leak")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220718042408.3132835-1-yangyingliang@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c