From 6a62d32c8110abaef63695271cc035873079e503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 29 Jan 2021 20:02:15 +0100 Subject: [PATCH] goodix: Consume the retry errors during verify/identify reports We should not pass such kind of errors to complete functions, or we'll fail the identification without ability to retry immediately. --- libfprint/drivers/goodixmoc/goodix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfprint/drivers/goodixmoc/goodix.c b/libfprint/drivers/goodixmoc/goodix.c index 82913d7..81cdb67 100644 --- a/libfprint/drivers/goodixmoc/goodix.c +++ b/libfprint/drivers/goodixmoc/goodix.c @@ -468,9 +468,9 @@ fp_verify_ssm_done (FpiSsm *ssm, FpDevice *dev, GError *error) if (error && error->domain == FP_DEVICE_RETRY) { if (fpi_device_get_current_action (dev) == FPI_DEVICE_ACTION_VERIFY) - fpi_device_verify_report (dev, FPI_MATCH_ERROR, NULL, error); + fpi_device_verify_report (dev, FPI_MATCH_ERROR, NULL, g_steal_pointer (&error)); else - fpi_device_identify_report (dev, NULL, NULL, error); + fpi_device_identify_report (dev, NULL, NULL, g_steal_pointer (&error)); } if (fpi_device_get_current_action (dev) == FPI_DEVICE_ACTION_VERIFY)