]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NTB: fix access of free-ed pointer
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 3 Oct 2015 08:09:41 +0000 (13:39 +0530)
committerJon Mason <jdmason@kudzu.us>
Sun, 8 Nov 2015 21:11:21 +0000 (16:11 -0500)
commitd4adee09fd1cf65189cb8901eb7506aea3e869ac
treee124821445b7a4f601440f9f543ac023f9df3bb9
parent04afde45e096201f8fd74c1db848a5d85d1aa57d
NTB: fix access of free-ed pointer

We were accessing nt->mw_vec after freeing it. Fix the error path so
that we free nt->mw_vec after we have finished using it.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c