aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/hw/ipath/ipath_driver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c
index 291d4ea69a40..ab7458e904c3 100644
--- a/drivers/infiniband/hw/ipath/ipath_driver.c
+++ b/drivers/infiniband/hw/ipath/ipath_driver.c
@@ -486,7 +486,7 @@ static int __devinit ipath_init_one(struct pci_dev *pdev,
486 486
487 ret = ipath_init_chip(dd, 0); /* do the chip-specific init */ 487 ret = ipath_init_chip(dd, 0); /* do the chip-specific init */
488 if (ret) 488 if (ret)
489 goto bail_iounmap; 489 goto bail_irqsetup;
490 490
491 ret = ipath_enable_wc(dd); 491 ret = ipath_enable_wc(dd);
492 492
@@ -505,6 +505,9 @@ static int __devinit ipath_init_one(struct pci_dev *pdev,
505 505
506 goto bail; 506 goto bail;
507 507
508bail_irqsetup:
509 if (pdev->irq) free_irq(pdev->irq, dd);
510
508bail_iounmap: 511bail_iounmap:
509 iounmap((volatile void __iomem *) dd->ipath_kregbase); 512 iounmap((volatile void __iomem *) dd->ipath_kregbase);
510 513