]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc4d97a8f254006d69a5df9e1b98301f5c275fa2
tree562bc63dce348d8e4a2ab5dd14108b1d8aee3168
parent88c7f971858b0c9b873e363fc1f9280262becfbd
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