diff options
| author | Burt P <pburt0@gmail.com> | 2017-07-17 23:56:02 -0500 | 
|---|---|---|
| committer | Leandro Pereira <leandro@hardinfo.org> | 2017-07-19 07:20:40 -0700 | 
| commit | 30d7f09dceff1614aeca03e9d8a6c0c9d7018c4e (patch) | |
| tree | 9ce6d9b512f87d50974bfb3775fb5739fdfaad88 /modules | |
| parent | f5afa30e418cc4136a21df312af767c04d290cc3 (diff) | |
x86: fix old bug in old bug detection
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/devices/x86/processor.c | 7 | 
1 files changed, 7 insertions, 0 deletions
| 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 */ | 
