diff options
author | Richard Hughes <richard@hughsie.com> | 2014-11-20 14:16:54 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-11-20 14:16:54 +0000 |
commit | abb3181b0f57146e3ce860772a038aa4f7e88b63 (patch) | |
tree | dddc7c3085834f2642b823026341b56e15b1a96d | |
parent | c942b22a503c03bdb2c5377a41e5aa566c10a523 (diff) | |
download | gusb-abb3181b0f57146e3ce860772a038aa4f7e88b63.tar.gz |
Ignore 'unsupported' as a return value when dealing with kernel drivers
-rw-r--r-- | gusb/gusb-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c index 3a81491..f3ffaab 100644 --- a/gusb/gusb-device.c +++ b/gusb/gusb-device.c @@ -363,6 +363,7 @@ gboolean g_usb_device_claim_interface (GUsbDevice *device, interface); if (rc != LIBUSB_SUCCESS && rc != LIBUSB_ERROR_NOT_FOUND && /* No driver attached */ + rc != LIBUSB_ERROR_NOT_SUPPORTED && /* win32 */ rc != LIBUSB_ERROR_BUSY /* driver rebound already */) return g_usb_device_libusb_error_to_gerror (device, rc, error); @@ -406,6 +407,7 @@ gboolean g_usb_device_release_interface (GUsbDevice *device, interface); if (rc != LIBUSB_SUCCESS && rc != LIBUSB_ERROR_NOT_FOUND && /* No driver attached */ + rc != LIBUSB_ERROR_NOT_SUPPORTED && /* win32 */ rc != LIBUSB_ERROR_BUSY /* driver rebound already */) return g_usb_device_libusb_error_to_gerror (device, rc, error); |