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++) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to