svn commit: r236864 - stable/9/sys/dev/jme

Kevin Lo kevlo at FreeBSD.org
Mon Jun 11 01:38:35 UTC 2012


Author: kevlo
Date: Mon Jun 11 01:38:34 2012
New Revision: 236864
URL: http://svn.freebsd.org/changeset/base/236864

Log:
  MFC r236700:
  
  Fix a logic error when use PCIY_PMG capability
  
  Reviewed by:	yongari

Modified:
  stable/9/sys/dev/jme/if_jme.c
Directory Properties:
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/jme/if_jme.c
==============================================================================
--- stable/9/sys/dev/jme/if_jme.c	Mon Jun 11 00:16:05 2012	(r236863)
+++ stable/9/sys/dev/jme/if_jme.c	Mon Jun 11 01:38:34 2012	(r236864)
@@ -1661,7 +1661,7 @@ jme_resume(device_t dev)
 	sc = device_get_softc(dev);
 
 	JME_LOCK(sc);
-	if (pci_find_cap(sc->jme_dev, PCIY_PMG, &pmc) != 0) {
+	if (pci_find_cap(sc->jme_dev, PCIY_PMG, &pmc) == 0) {
 		pmstat = pci_read_config(sc->jme_dev,
 		    pmc + PCIR_POWER_STATUS, 2);
 		/* Disable PME clear PME status. */


More information about the svn-src-stable-9 mailing list