diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-07-18 12:24:08 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-18 13:10:22 -0600 |
commit | f50e5d670c622349277a46996a70386cc3661b10 (patch) | |
tree | 59d94d0eb99b5d3ddf87feb1fdc7d38eb69d8c3e /block/badblocks.c | |
parent | f2450f8a2c1ec3e88d6674f747b913aa5f21fa59 (diff) | |
download | linux-f50e5d670c622349277a46996a70386cc3661b10.tar.bz2 |
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: cebbe577cb17 ("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>
Diffstat (limited to 'block/badblocks.c')
0 files changed, 0 insertions, 0 deletions