Message ID | 1510850407-17266-2-git-send-email-mst@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,1/9] fix: unrealize virtio device if we fail to hotplug it | expand |
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 5884ce3..ea532dc 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -2491,6 +2491,7 @@ static void virtio_device_realize(DeviceState *dev, Error **errp) virtio_bus_device_plugged(vdev, &err); if (err != NULL) { error_propagate(errp, err); + vdc->unrealize(dev, NULL); return; }