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.
This commit is contained in:
Peter Maatman 2019-04-15 20:31:54 +02:00
parent 6f4c378933
commit 6764ec79ae

View file

@ -1430,8 +1430,9 @@ static void dev_deactivate(struct fp_img_dev *idev)
/* this can be called even if still activated. */ /* this can be called even if still activated. */
if (dev->is_active == TRUE) { if (dev->is_active == TRUE) {
dev->is_active = FALSE; 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) static int dev_open(struct fp_img_dev *idev, unsigned long driver_data)