usb-redir: Device disconnect + re-connect robustness fixes
commit99f08100cd2b35a35e1c5b2e6b043911a568906c
authorHans de Goede <hdegoede@redhat.com>
Sat, 19 Nov 2011 09:22:46 +0000 (19 10:22 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 28 Nov 2011 22:20:51 +0000 (28 16:20 -0600)
tree4a464d7bb06c656d5d5a57b7b4846aec3c0b0a9c
parent65f9d98673cb04436257628958177516416456fa
usb-redir: Device disconnect + re-connect robustness fixes

These fixes mainly target the other side sending some (error status)
packets after a disconnect packet. In some cases these would get queued
up and then reported to the controller when a new device gets connected.

* Fully reset device state on disconnect
* Don't allow a connect message when already connected
* Ignore iso and interrupt status messages when disconnected

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
usb-redir.c