Date: Wed, 20 May 2009 02:13:02 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r192412 - in stable/7/sys: . contrib/pf dev/age dev/ath/ath_hal dev/cxgb Message-ID: <200905200213.n4K2D2V1015873@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yongari Date: Wed May 20 02:13:01 2009 New Revision: 192412 URL: http://svn.freebsd.org/changeset/base/192412 Log: MFC r190303: Fix inversed logic. pci_find_extcap() returns 0 when it finds specified capability. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/age/if_age.c stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) Modified: stable/7/sys/dev/age/if_age.c ============================================================================== --- stable/7/sys/dev/age/if_age.c Wed May 20 00:55:26 2009 (r192411) +++ stable/7/sys/dev/age/if_age.c Wed May 20 02:13:01 2009 (r192412) @@ -1369,7 +1369,7 @@ age_setwol(struct age_softc *sc) AGE_LOCK_ASSERT(sc); - if (pci_find_extcap(sc->age_dev, PCIY_PMG, &pmc) == 0) { + if (pci_find_extcap(sc->age_dev, PCIY_PMG, &pmc) != 0) { CSR_WRITE_4(sc, AGE_WOL_CFG, 0); /* * No PME capability, PHY power down.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905200213.n4K2D2V1015873>