aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorDaniil Tatianin <d-tatianin@yandex-team.ru>2021-11-29 16:23:57 +0300
committerMichael S. Tsirkin <mst@redhat.com>2022-01-07 19:30:13 -0500
commitb259772afc29ef6af4e911d8e695dd7e2ed31066 (patch)
tree455bd86eac705929b2aba44a73a6c89a871f248e /tcg
parent14dc58e3e0b12595e407502b93a8bb7e69621cbb (diff)
downloadqemu-b259772afc29ef6af4e911d8e695dd7e2ed31066.zip
qemu-b259772afc29ef6af4e911d8e695dd7e2ed31066.tar.gz
qemu-b259772afc29ef6af4e911d8e695dd7e2ed31066.tar.bz2
hw/scsi/vhost-scsi: don't leak vqs on error
vhost_dev_init calls vhost_dev_cleanup in case of an error during initialization, which zeroes out the entire vsc->dev as well as the vsc->dev.vqs pointer. This prevents us from properly freeing it in free_vqs. Keep a local copy of the pointer so we can free it later. Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru> Message-Id: <20211129132358.1110372-1-d-tatianin@yandex-team.ru> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tcg')
0 files changed, 0 insertions, 0 deletions