Linux: Fix get_kernel_driver_active() when another app has claimed the interface
commitb0f7e06bac88dc97b2143f46af7ea0f2d32da467
authorHans de Goede <hdegoede@redhat.com>
Thu, 20 Jun 2013 09:51:38 +0000 (20 11:51 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 20 Jun 2013 09:51:38 +0000 (20 11:51 +0200)
tree44b3317e4ff8bee5b2603cabc1f99c134700e374
parent12b18c3b633b0db4dbfeb15a9004dfc64486a5c5
Linux: Fix get_kernel_driver_active() when another app has claimed the interface

When another app has claimed the interface, IOCTL_USBFS_GETDRIVER will
succeed and report a driver of "usbfs" being attached.

Since this is not a regular kernel-driver (and detach_kernel_driver does
not detach it), get_kernel_driver_active() should return 0 in this case.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/os/linux_usbfs.c
libusb/version_nano.h