summaryrefslogtreecommitdiffstats
path: root/drivers/ntb
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 /drivers/ntb
parentd4a4f75cd8f29cd9464a5a32e9224a91571d6649 (diff)
downloadlinux-2f4eb6a80e57845ef6f3f7d1cdaaec7a6ab480a9.tar.bz2
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>
Diffstat (limited to 'drivers/ntb')
-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)
dev_warn(&pdev->dev, "Cannot remap BAR %d\n",
MW_TO_BAR(i));
rc = -EIO;
- goto err3;
+ goto err4;
}
}