ntb: iounmap MW reg and vbase in error path
authorJon Mason <jdmason@kudzu.us>
Sun, 5 Apr 2015 18:57:22 +0000 (14:57 -0400)
committerJon Mason <jdmason@kudzu.us>
Tue, 9 Jun 2015 02:38:40 +0000 (22:38 -0400)
commit2f4eb6a80e57845ef6f3f7d1cdaaec7a6ab480a9
tree562bc63dce348d8e4a2ab5dd14108b1d8aee3168
parentd4a4f75cd8f29cd9464a5a32e9224a91571d6649
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>
drivers/ntb/ntb_hw.c