]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
usb-redir: Correctly handle the usb_redir_babble usbredir status
authorHans de Goede <hdegoede@redhat.com>
Fri, 6 Jul 2012 10:09:32 +0000 (12:09 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 21 Aug 2012 20:36:35 +0000 (15:36 -0500)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit adae502c0ae4572ef08f71cb5b5ed5a8e90299fe)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/usb/redirect.c

index 51c27b4051705f1e5925cc93202604f55ffcdedc..1fd903acce5ef6c89624dd1b7ec646be8cc889d4 100644 (file)
@@ -1031,6 +1031,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: