svn commit: r284357 - head/sys/dev/acpi_support
Garrett Cooper
ngie at FreeBSD.org
Sat Jun 13 22:27:59 UTC 2015
Author: ngie
Date: Sat Jun 13 22:27:59 2015
New Revision: 284357
URL: https://svnweb.freebsd.org/changeset/base/284357
Log:
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
Modified:
head/sys/dev/acpi_support/acpi_ibm.c
Modified: head/sys/dev/acpi_support/acpi_ibm.c
==============================================================================
--- head/sys/dev/acpi_support/acpi_ibm.c Sat Jun 13 22:01:21 2015 (r284356)
+++ head/sys/dev/acpi_support/acpi_ibm.c Sat Jun 13 22:27:59 2015 (r284357)
@@ -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++) {
More information about the svn-src-all
mailing list