mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
synaptics: Close the usb device if reset failed
If reseting the device failed, we still need to close the usb device before returning.
This commit is contained in:
committed by
Marco Trevisan
parent
ee606ae49e
commit
42db16364d
@@ -970,10 +970,7 @@ dev_probe (FpDevice *device)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!g_usb_device_reset (fpi_device_get_usb_device (device), &error))
|
if (!g_usb_device_reset (fpi_device_get_usb_device (device), &error))
|
||||||
{
|
goto err_close;
|
||||||
fpi_device_probe_complete (device, NULL, NULL, error);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!g_usb_device_claim_interface (fpi_device_get_usb_device (device), 0, 0, &error))
|
if (!g_usb_device_claim_interface (fpi_device_get_usb_device (device), 0, 0, &error))
|
||||||
goto err_close;
|
goto err_close;
|
||||||
|
|||||||
Reference in New Issue
Block a user