summary refs log tree commit diff stats
path: root/hw/virtio-pci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-10-28 16:13:50 +0200
committerGerd Hoffmann <kraxel@redhat.com>2011-11-01 16:38:36 +0100
commit39fba3ada9a9e36a29a40e1acddec0923839c39b (patch)
treec2bb9f68615d8e7ef1d7f7685e8a794f11f1ab9e /hw/virtio-pci.c
parentdb80358a20e2597a0844998c832b2dce667d0aa0 (diff)
downloadfocaccia-qemu-39fba3ada9a9e36a29a40e1acddec0923839c39b.tar.gz
focaccia-qemu-39fba3ada9a9e36a29a40e1acddec0923839c39b.zip
usb-host: fix host close
The whole usb_host_close() function is skipped in case the device is not
in attached state.  This is wrong though, only then usb_device_detach()
must be skipped, all other cleanup (especially device reset and closing
the file handle) still needs to be done.  There are code paths where
usb_host_close() is called with the device in detached state already.

This fixes usb-host devices not being released and returned to the host
after removing them with device_del.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/virtio-pci.c')
0 files changed, 0 insertions, 0 deletions