1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

dmi.c: Ensure g_has_dmi_support is default on shutdown

Ensure the g_has_dmi_support variable has the default state
of false after the life-time has expired.

BUG=none
TEST=builds

Change-Id: I0674950304736e53d014117d287682a4f6349879
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/62996
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Thomas Heijligen <src@posteo.de>
Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Edward O'Callaghan 2022-03-22 22:20:33 +11:00 committed by Edward O'Callaghan
parent c706e6b52c
commit 632bdcb9e2

1
dmi.c
View File

@ -386,6 +386,7 @@ static int dmi_shutdown(void *data)
free(dmi_strings[i].value); free(dmi_strings[i].value);
dmi_strings[i].value = NULL; dmi_strings[i].value = NULL;
} }
g_has_dmi_support = false;
return 0; return 0;
} }