diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-07-27 01:15:03 +0400 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2016-07-29 00:33:47 +0300 |
| commit | f1a0365b686c2abdfde6303947f8893873b6b00b (patch) | |
| tree | e90d14cbba3a66fbfd4aef0e4111f7bec919eada /hw/virtio/vhost.c | |
| parent | e0547b59dc0ead4c605d3f02d1c8829630a1311b (diff) | |
| download | focaccia-qemu-f1a0365b686c2abdfde6303947f8893873b6b00b.tar.gz focaccia-qemu-f1a0365b686c2abdfde6303947f8893873b6b00b.zip | |
vhost-net: always call vhost_dev_cleanup() on failure
vhost_dev_init(), calling vhost backend initialization, should be cleaned up after failure too. Call vhost_dev_cleanup() in all failure cases. First, it needs to zero-alloc the struct to avoid the initial garbage. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/vhost.c')
0 files changed, 0 insertions, 0 deletions