From 69de32f7007f50eb0485d601cda9f365fa25c9a4 Mon Sep 17 00:00:00 2001 From: Anton Eliasson Date: Wed, 15 Jun 2016 17:18:11 +0200 Subject: [PATCH] vfs5011: Don't submit an image if there was an error capturing it --- libfprint/drivers/vfs5011.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libfprint/drivers/vfs5011.c b/libfprint/drivers/vfs5011.c index 90947d3..facb32c 100644 --- a/libfprint/drivers/vfs5011.c +++ b/libfprint/drivers/vfs5011.c @@ -747,8 +747,7 @@ static void activate_loop_complete(struct fpi_ssm *ssm) if (data->init_sequence.receive_buf != NULL) g_free(data->init_sequence.receive_buf); data->init_sequence.receive_buf = NULL; - /* We don't want to submit image if we're in deactivating process */ - if (!data->deactivating) { + if (!data->deactivating && !r) { submit_image(ssm, data); fpi_imgdev_report_finger_status(dev, FALSE); }