fpcmoc: clean cmd_ssm before callback

fixed assertion of "cmd_ssm is not null"

Change-Id: I8f914468dc0e40c6cac33d680411a2d957cf2296
This commit is contained in:
Haowei Lo
2024-04-16 21:46:19 +08:00
parent fb13722629
commit f505158c04

View File

@@ -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