diff options
author | Hans de Goede <hdegoede@redhat.com> | 2013-11-19 14:36:59 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-11-26 09:21:17 +0100 |
commit | de9de157fbb9aa66380ab1973dd6ecf12fbd8b25 (patch) | |
tree | 2f7777a78ff725c142c40eadef87a9b66e920412 /hw/usb/dev-uas.c | |
parent | 7457fe9541b5162f285454947448d553a5d5a531 (diff) | |
download | qemu-de9de157fbb9aa66380ab1973dd6ecf12fbd8b25.zip qemu-de9de157fbb9aa66380ab1973dd6ecf12fbd8b25.tar.gz qemu-de9de157fbb9aa66380ab1973dd6ecf12fbd8b25.tar.bz2 |
xhci: Add a few missing checks for disconnected devices
One of the reworks of qemu's usb core made changes to usb-port's disconnect
handling. Now ports with a device will always have a non 0 dev member, but
if the device is not attached (which is possible with usb redirection),
dev->attached will be 0.
So supplement all checks for dev to also check dev->attached, and add an
extra check in a path where a device check was completely missing.
This fixes various crashes (asserts triggering) I've been seeing when xhci
attached usb devices get disconnected at the wrong time.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/dev-uas.c')
0 files changed, 0 insertions, 0 deletions