Date: Fri, 6 Mar 2009 11:24:42 +0000 (UTC) From: Robert Noland <rnoland@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r189447 - head/sys/dev/pci Message-ID: <200903061124.n26BOgvi017857@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rnoland Date: Fri Mar 6 11:24:42 2009 New Revision: 189447 URL: http://svn.freebsd.org/changeset/base/189447 Log: Invert the logic error for the MSI/MSIX vs INTx case. Pointyhat to: me MFC after: 3 days Modified: head/sys/dev/pci/pci.c Modified: head/sys/dev/pci/pci.c ============================================================================== --- head/sys/dev/pci/pci.c Fri Mar 6 11:15:24 2009 (r189446) +++ head/sys/dev/pci/pci.c Fri Mar 6 11:24:42 2009 (r189447) @@ -2920,7 +2920,7 @@ pci_teardown_intr(device_t dev, device_t return(bus_generic_teardown_intr(dev, child, irq, cookie)); rid = rman_get_rid(irq); - if (rid > 0) { + if (rid == 0) { /* Mask INTx */ pci_set_command_bit(dev, child, PCIM_CMD_INTxDIS); } else {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903061124.n26BOgvi017857>