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:
parent
c1e0b4d15b
commit
63605044cf
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user