aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2015-04-05 14:57:22 -0400
committerJon Mason <jdmason@kudzu.us>2015-06-08 22:38:40 -0400
commit2f4eb6a80e57845ef6f3f7d1cdaaec7a6ab480a9 (patch)
tree562bc63dce348d8e4a2ab5dd14108b1d8aee3168
parentd4a4f75cd8f29cd9464a5a32e9224a91571d6649 (diff)
ntb: iounmap MW reg and vbase in error path
The MW regbase and vbase(s) were not being freed if an error occurred in the vbase allocation loop. This is corrected by updating the error path for the allocation loop to err4. Reported-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Jon Mason <jdmason@kudzu.us>
-rw-r--r--drivers/ntb/ntb_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c
index cd29b1038c5e..b5c8707f4ac7 100644
--- a/drivers/ntb/ntb_hw.c
+++ b/drivers/ntb/ntb_hw.c
@@ -1778,7 +1778,7 @@ static int ntb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1778 dev_warn(&pdev->dev, "Cannot remap BAR %d\n", 1778 dev_warn(&pdev->dev, "Cannot remap BAR %d\n",
1779 MW_TO_BAR(i)); 1779 MW_TO_BAR(i));
1780 rc = -EIO; 1780 rc = -EIO;
1781 goto err3; 1781 goto err4;
1782 } 1782 }
1783 } 1783 }
1784 1784