diff options
author | Jon Mason <jdmason@kudzu.us> | 2015-04-05 21:57:22 +0300 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2015-06-09 05:38:40 +0300 |
commit | 2f4eb6a80e57845ef6f3f7d1cdaaec7a6ab480a9 (patch) | |
tree | 562bc63dce348d8e4a2ab5dd14108b1d8aee3168 /drivers | |
parent | d4a4f75cd8f29cd9464a5a32e9224a91571d6649 (diff) | |
download | linux-2f4eb6a80e57845ef6f3f7d1cdaaec7a6ab480a9.tar.xz |
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')
-rw-r--r-- | drivers/ntb/ntb_hw.c | 2 |
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; } } |