]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-blk: free vblk-vqs in error path of virtblk_probe()
authorHou Tao <houtao1@huawei.com>
Mon, 15 Jun 2020 04:14:59 +0000 (12:14 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 01:02:58 +0000 (19:02 -0600)
commitcf9b91c2d730c8b5ecf549bd3fc912bf6acd71b2
treeabf0c0c1f7ca8290cc8330425b35e25b1fccbd3a
parentbea5159d92a94427cf28fb2a62e90d36318bc851
virtio-blk: free vblk-vqs in error path of virtblk_probe()

Else there will be memory leak if alloc_disk() fails.

Fixes: c8e7ecf816a4 ("block: virtio-blk: support multi virt queues per virtio-blk device")
Signed-off-by: Hou Tao <houtao1@huawei.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/virtio_blk.c