Invert the logic error for the MSI/MSIX vs INTx case.

Pointyhat to:	me

MFC after:	3 days
This commit is contained in:
Robert Noland 2009-03-06 11:24:42 +00:00
parent 227e568e30
commit 41b3a23249

View File

@ -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 {