diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-05-31 14:55:17 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2011-05-31 14:55:17 +0200 |
commit | 00ea6e7b80f1dbabc2200294991b4385849235d0 (patch) | |
tree | 0e8800bee0288538d06c90cc3652d7312219cc57 /usbredirhost | |
parent | c8a378d07261a5ce97efc21007e42847a55301df (diff) |
usbredirhost: handle libusb passing -EXDEV to us
Diffstat (limited to 'usbredirhost')
-rw-r--r-- | usbredirhost/usbredirhost.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usbredirhost/usbredirhost.c b/usbredirhost/usbredirhost.c index 444c373..94f8bc8 100644 --- a/usbredirhost/usbredirhost.c +++ b/usbredirhost/usbredirhost.c @@ -23,6 +23,7 @@ #include <stdlib.h> #include <stdarg.h> #include <string.h> +#include <errno.h> #include "usbredirhost.h" #define MAX_ENDPOINTS 32 @@ -684,6 +685,7 @@ static int usbredirhost_handle_iso_status(struct usbredirhost *host, switch (r) { case LIBUSB_TRANSFER_COMPLETED: + case -EXDEV: /* FIXlibusb: Passing regular error codes, bad libusb, bad! */ return 0; case LIBUSB_TRANSFER_CANCELLED: /* Stream was intentionally stopped */ |