summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2009-03-06 11:24:42 +0000
committerrnoland <rnoland@FreeBSD.org>2009-03-06 11:24:42 +0000
commitb98ab0f7d2bfd773e3cea160aae31c0308198be9 (patch)
tree85ff36dd4ef1b8381dbbd4aad6955518c02806ce
parent83ca9cb3daaaad053c600309e817b73e95e60397 (diff)
downloadFreeBSD-src-b98ab0f7d2bfd773e3cea160aae31c0308198be9.zip
FreeBSD-src-b98ab0f7d2bfd773e3cea160aae31c0308198be9.tar.gz
Invert the logic error for the MSI/MSIX vs INTx case.
Pointyhat to: me MFC after: 3 days
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index db25615..8804840 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -2920,7 +2920,7 @@ pci_teardown_intr(device_t dev, device_t child, struct resource *irq,
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 {
OpenPOWER on IntegriCloud