aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/quirks.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 51c4a4409e8c..50448c291a8f 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2541,15 +2541,18 @@ static void __devinit __nv_msi_ht_cap_quirk(struct pci_dev *dev, int all)
2541 else 2541 else
2542 nv_ht_enable_msi_mapping(dev); 2542 nv_ht_enable_msi_mapping(dev);
2543 } 2543 }
2544 return; 2544 goto out;
2545 } 2545 }
2546 2546
2547 /* HT MSI is not enabled */ 2547 /* HT MSI is not enabled */
2548 if (found == 1) 2548 if (found == 1)
2549 return; 2549 goto out;
2550 2550
2551 /* Host bridge is not to HT, disable HT MSI mapping on this device */ 2551 /* Host bridge is not to HT, disable HT MSI mapping on this device */
2552 ht_disable_msi_mapping(dev); 2552 ht_disable_msi_mapping(dev);
2553
2554out:
2555 pci_dev_put(host_bridge);
2553} 2556}
2554 2557
2555static void __devinit nv_msi_ht_cap_quirk_all(struct pci_dev *dev) 2558static void __devinit nv_msi_ht_cap_quirk_all(struct pci_dev *dev)