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:
Marco Trevisan (Treviño) 2019-11-28 20:35:33 +01:00 committed by Marco Trevisan
parent ee606ae49e
commit 42db16364d

View file

@ -970,10 +970,7 @@ dev_probe (FpDevice *device)
}
if (!g_usb_device_reset (fpi_device_get_usb_device (device), &error))
{
fpi_device_probe_complete (device, NULL, NULL, error);
return;
}
goto err_close;
if (!g_usb_device_claim_interface (fpi_device_get_usb_device (device), 0, 0, &error))
goto err_close;