From 63605044cf2ae0070606874dac71d080505a2779 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sat, 13 Jun 2015 22:27:59 +0000 Subject: [PATCH] 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 --- sys/dev/acpi_support/acpi_ibm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpi_support/acpi_ibm.c b/sys/dev/acpi_support/acpi_ibm.c index f8ff1ebca34..77509af4275 100644 --- a/sys/dev/acpi_support/acpi_ibm.c +++ b/sys/dev/acpi_support/acpi_ibm.c @@ -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++) {