Date: Mon, 11 Jun 2012 01:38:34 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r236864 - stable/9/sys/dev/jme Message-ID: <201206110138.q5B1cYhR033718@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206110138.q5B1cYhR033718>