diff options
author | Haowei Lo <haowei.lo@fingerprints.com> | 2024-04-16 21:46:19 +0800 |
---|---|---|
committer | Haowei Lo <haowei.lo@fingerprints.com> | 2024-04-16 21:46:19 +0800 |
commit | f505158c04119152c26f92bdf328e949eb0a5c2c (patch) | |
tree | 94b85bf78337f29ff26ece02d1277438a2182aa0 | |
parent | fb137226293bbfc95e7c1ec0f63b408891f10394 (diff) |
fpcmoc: clean cmd_ssm before callback
fixed assertion of "cmd_ssm is not null"
Change-Id: I8f914468dc0e40c6cac33d680411a2d957cf2296
-rw-r--r-- | libfprint/drivers/fpcmoc/fpc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libfprint/drivers/fpcmoc/fpc.c b/libfprint/drivers/fpcmoc/fpc.c index dd6bf09..87ab154 100644 --- a/libfprint/drivers/fpcmoc/fpc.c +++ b/libfprint/drivers/fpcmoc/fpc.c @@ -269,6 +269,7 @@ fpc_cmd_ssm_done (FpiSsm *ssm, FpDevice *dev, GError *error) FpiDeviceFpcMoc *self = FPI_DEVICE_FPCMOC (dev); CommandData *data = fpi_ssm_get_data (ssm); + self->cmd_ssm = NULL; /* Notify about the SSM failure from here instead. */ if (error) { @@ -276,8 +277,6 @@ fpc_cmd_ssm_done (FpiSsm *ssm, FpDevice *dev, GError *error) if (data->callback) data->callback (self, NULL, error); } - - self->cmd_ssm = NULL; } static void |