Skip to content
Commit 8964c934 authored by Hou Tao's avatar Hou Tao Committed by Greg Kroah-Hartman
Browse files

virtio-blk: free vblk-vqs in error path of virtblk_probe()



[ Upstream commit e7eea44e ]

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

Fixes: 6a27b656 ("block: virtio-blk: support multi virt queues per virtio-blk device")
Signed-off-by: default avatarHou Tao <houtao1@huawei.com>
Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f795a88e
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