diff options
-rw-r--r-- | hw/fsp/fsp-elog-read.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/fsp/fsp-elog-read.c b/hw/fsp/fsp-elog-read.c index 5814aab..135dfe7 100644 --- a/hw/fsp/fsp-elog-read.c +++ b/hw/fsp/fsp-elog-read.c @@ -299,6 +299,7 @@ static int64_t fsp_opal_elog_info(uint64_t *opal_elog_id, if (!log_data) { prlog(PR_ERR, "%s: Inconsistent internal list state !\n", __func__); + fsp_elog_set_head_state(ELOG_STATE_NONE); unlock(&elog_read_lock); return OPAL_WRONG_STATE; } @@ -334,6 +335,7 @@ static int64_t fsp_opal_elog_read(uint64_t *buffer, uint64_t opal_elog_size, if (!log_data) { prlog(PR_ERR, "%s: Inconsistent internal list state !\n", __func__); + fsp_elog_set_head_state(ELOG_STATE_NONE); unlock(&elog_read_lock); return OPAL_WRONG_STATE; } |