From 632bdcb9e2b3faab2eafde16208142f7d6ad70a7 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Tue, 22 Mar 2022 22:20:33 +1100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/62996 Tested-by: build bot (Jenkins) Reviewed-by: Thomas Heijligen Reviewed-by: Nikolai Artemiev Reviewed-by: Angel Pons --- dmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dmi.c b/dmi.c index a82b4946..7c0fc4c7 100644 --- a/dmi.c +++ b/dmi.c @@ -386,6 +386,7 @@ static int dmi_shutdown(void *data) free(dmi_strings[i].value); dmi_strings[i].value = NULL; } + g_has_dmi_support = false; return 0; } -- cgit v1.2.3