Blame SOURCES/0181-synaptics-Report-a-verify-complete-error-on-unexpect.patch

73b847
From 619666513c0250a96a5214fd8a00cc4d69c4d6cc 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, 16 Jan 2020 19:47:45 +0100
73b847
Subject: [PATCH 181/181] synaptics: Report a verify complete error on
73b847
 unexpected result
73b847
73b847
---
73b847
 libfprint/drivers/synaptics/synaptics.c | 7 ++++++-
73b847
 1 file changed, 6 insertions(+), 1 deletion(-)
73b847
73b847
diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c
73b847
index 3f79e4b..227e406 100644
73b847
--- a/libfprint/drivers/synaptics/synaptics.c
73b847
+++ b/libfprint/drivers/synaptics/synaptics.c
73b847
@@ -645,7 +645,12 @@ verify_msg_cb (FpiDeviceSynaptics *self,
73b847
       else
73b847
         {
73b847
           fp_warn ("Verify has failed: %d", resp->result);
73b847
-          fpi_device_verify_complete (device, FPI_MATCH_FAIL, NULL, NULL);
73b847
+          fpi_device_verify_complete (device,
73b847
+                                      FPI_MATCH_ERROR,
73b847
+                                      NULL,
73b847
+                                      fpi_device_error_new_msg (FP_DEVICE_ERROR_PROTO,
73b847
+                                                                "Unexpected result from device %d",
73b847
+                                                                resp->result));
73b847
         }
73b847
       break;
73b847
 
73b847
-- 
73b847
2.24.1
73b847