Patchwork [1/2] usb-redir: Correctly handle the usb_redir_babble usbredir status

login
register
mail settings
Submitter Hans de Goede
Date July 6, 2012, 10:09 a.m.
Message ID <1341569373-9478-2-git-send-email-hdegoede@redhat.com>
Download mbox | patch
Permalink /patch/169403/
State New
Headers show

Comments

Hans de Goede - July 6, 2012, 10:09 a.m.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 hw/usb/redirect.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
index 5f55d78..c6358c0 100644
--- a/hw/usb/redirect.c
+++ b/hw/usb/redirect.c
@@ -1058,6 +1058,8 @@  static int usbredir_handle_status(USBRedirDevice *dev,
     case usb_redir_inval:
         WARNING("got invalid param error from usb-host?\n");
         return USB_RET_NAK;
+    case usb_redir_babble:
+        return USB_RET_BABBLE;
     case usb_redir_ioerror:
     case usb_redir_timeout:
     default: