Blame SOURCES/0054-synaptics-Close-the-usb-device-if-reset-failed.patch

73b847
From e26a788fd6e4c71cfdbd3c62df4a5ebeba81b31b Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Thu, 28 Nov 2019 20:35:33 +0100
73b847
Subject: [PATCH 054/181] synaptics: Close the usb device if reset failed
73b847
73b847
If reseting the device failed, we still need to close the usb device before
73b847
returning.
73b847
---
73b847
 libfprint/drivers/synaptics/synaptics.c | 5 +----
73b847
 1 file changed, 1 insertion(+), 4 deletions(-)
73b847
73b847
diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c
73b847
index 284973c..1524c45 100644
73b847
--- a/libfprint/drivers/synaptics/synaptics.c
73b847
+++ b/libfprint/drivers/synaptics/synaptics.c
73b847
@@ -970,10 +970,7 @@ dev_probe (FpDevice *device)
73b847
     }
73b847
 
73b847
   if (!g_usb_device_reset (fpi_device_get_usb_device (device), &error))
73b847
-    {
73b847
-      fpi_device_probe_complete (device, NULL, NULL, error);
73b847
-      return;
73b847
-    }
73b847
+    goto err_close;
73b847
 
73b847
   if (!g_usb_device_claim_interface (fpi_device_get_usb_device (device), 0, 0, &error))
73b847
     goto err_close;
73b847
-- 
73b847
2.24.1
73b847