summaryrefslogtreecommitdiffstats
path: root/dmi.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-03-22 22:20:33 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2022-04-05 22:41:54 +0000
commit632bdcb9e2b3faab2eafde16208142f7d6ad70a7 (patch)
tree26b2a79e993ddc48e44d2ff2242ae6f175aad76d /dmi.c
parentc706e6b52c3523dd71d5a67d8c0db62a74ae9941 (diff)
downloadflashrom-632bdcb9e2b3faab2eafde16208142f7d6ad70a7.tar.gz
flashrom-632bdcb9e2b3faab2eafde16208142f7d6ad70a7.tar.bz2
flashrom-632bdcb9e2b3faab2eafde16208142f7d6ad70a7.zip
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>
Diffstat (limited to 'dmi.c')
-rw-r--r--dmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dmi.c b/dmi.c
index a82b49463..7c0fc4c79 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;
}