dfu: Unbind the kernel module when claiming the device DFU interface

This commit is contained in:
Richard Hughes 2017-10-13 16:52:09 +01:00
parent 5bb91535ce
commit 9fac3a2895

View File

@ -939,7 +939,8 @@ dfu_device_ensure_interface (DfuDevice *device,
/* claim, without detaching kernel driver */
if (!g_usb_device_claim_interface (priv->dev,
(gint) priv->iface_number,
0, &error_local)) {
G_USB_DEVICE_CLAIM_INTERFACE_BIND_KERNEL_DRIVER,
&error_local)) {
g_set_error (error,
FWUPD_ERROR,
FWUPD_ERROR_NOT_SUPPORTED,