From 30d7f09dceff1614aeca03e9d8a6c0c9d7018c4e Mon Sep 17 00:00:00 2001 From: Burt P Date: Mon, 17 Jul 2017 23:56:02 -0500 Subject: x86: fix old bug in old bug detection Signed-off-by: Burt P --- modules/devices/x86/processor.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/devices/x86') diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c index 40e3d7fc..707983ed 100644 --- a/modules/devices/x86/processor.c +++ b/modules/devices/x86/processor.c @@ -275,6 +275,7 @@ GSList *processor_scan(void) get_str("hlt_bug", processor->bug_hlt); get_str("f00f_bug", processor->bug_f00f); get_str("coma_bug", processor->bug_coma); + /* sep_bug? */ get_int("model", processor->model); get_int("cpu family", processor->family); @@ -295,6 +296,12 @@ GSList *processor_scan(void) get_processor_strfamily(processor); __cache_obtain_info(processor); +#define NULLIFNOTYES(f) if (processor->f) if (strcmp(processor->f, "yes") != 0) { g_free(processor->f); processor->f = NULL; } + NULLIFNOTYES(bug_fdiv); + NULLIFNOTYES(bug_hlt); + NULLIFNOTYES(bug_f00f); + NULLIFNOTYES(bug_coma); + if (processor->bugs == NULL || g_strcmp0(processor->bugs, "") == 0) { g_free(processor->bugs); /* make bugs list on old kernels that don't offer one */ -- cgit v1.2.3