diff options
| author | Daniil Tatianin <d-tatianin@yandex-team.ru> | 2021-11-29 16:23:57 +0300 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2022-01-07 19:30:13 -0500 |
| commit | b259772afc29ef6af4e911d8e695dd7e2ed31066 (patch) | |
| tree | 455bd86eac705929b2aba44a73a6c89a871f248e /hw/net/virtio-net.c | |
| parent | 14dc58e3e0b12595e407502b93a8bb7e69621cbb (diff) | |
| download | focaccia-qemu-b259772afc29ef6af4e911d8e695dd7e2ed31066.tar.gz focaccia-qemu-b259772afc29ef6af4e911d8e695dd7e2ed31066.zip | |
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 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions