Fix inverted check by skipping over the model-specific checks if the maker

or product is NULL, not if they are both not NULL

Reported by: araujo, kib
X-MFC with: r283678, r284336
Pointyhat to: allanjude
This commit is contained in:
Enji Cooper 2015-06-13 22:27:59 +00:00
parent c1e0b4d15b
commit 63605044cf

View File

@ -485,7 +485,7 @@ acpi_ibm_attach(device_t dev)
/* Enable per-model events. */
maker = kern_getenv("smbios.system.maker");
product = kern_getenv("smbios.system.product");
if (maker != NULL && product != NULL)
if (maker == NULL && product == NULL)
goto nosmbios;
for (i = 0; i < nitems(acpi_ibm_models); i++) {