diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 633eb69e55..f7473bffb4 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -614,7 +614,7 @@ x86ModelHasFeature(struct x86_model *model, cpuid = feature->cpuid + i; model_cpuid = x86cpuidFind(model->cpuid, model->ncpuid, cpuid->function); - if (!x86cpuidMatchMasked(model_cpuid, cpuid)) + if (!model_cpuid || !x86cpuidMatchMasked(model_cpuid, cpuid)) return false; }