From 6764ec79ae00dc49d1597f007cbc44cc364b1ee5 Mon Sep 17 00:00:00 2001 From: Peter Maatman Date: Mon, 15 Apr 2019 20:31:54 +0200 Subject: [PATCH] etes603: Prevent hang during enroll process This commit fixes a hang in gnome-settings when trying to enroll a finger. The same issue could be seen in the enroll example. Previously the enroll example would hang on "deactivating" because at some point dev->is_active is set to false and m_exit_start is never called. --- libfprint/drivers/etes603.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libfprint/drivers/etes603.c b/libfprint/drivers/etes603.c index 97b6913..8f3ec45 100644 --- a/libfprint/drivers/etes603.c +++ b/libfprint/drivers/etes603.c @@ -1430,8 +1430,9 @@ static void dev_deactivate(struct fp_img_dev *idev) /* this can be called even if still activated. */ if (dev->is_active == TRUE) { dev->is_active = FALSE; - m_exit_start(idev); } + + m_exit_start(idev); } static int dev_open(struct fp_img_dev *idev, unsigned long driver_data)