]> 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)
commit8ebe117566b6bceb0714f4ff51e9de8effab9d9c
tree562bc63dce348d8e4a2ab5dd14108b1d8aee3168
parentbe9a3ee1b35a8f842500792cdbc9a1f4ff512b29
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