summaryrefslogtreecommitdiffstats
path: root/lib/debug_locks.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-01-22 10:38:57 +0100
committerJon Mason <jdmason@kudzu.us>2018-01-29 04:17:24 +0100
commit2e2bc5a9a300261853303c006b7c29faafc64221 (patch)
tree8fd676caf858363541e4d64130bda58c9faa0047 /lib/debug_locks.c
parentNTB: ntb_perf: fix printing of resource_size_t (diff)
downloadlinux-2e2bc5a9a300261853303c006b7c29faafc64221.tar.xz
linux-2e2bc5a9a300261853303c006b7c29faafc64221.zip
NTB: ntb_tool: fix memory leak on 'buf' on error exit path
Currently there is a memory leak on buf when the call to ntb_mw_get_align fails. Add an exit err label and jump to this so that kfree on buf frees the memory. Detected by CoverityScan, CID#1464286 ("Resource leak") Fixes: d637628ce00c ("NTB: ntb_tool: Add full multi-port NTB API support") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'lib/debug_locks.c')
0 files changed, 0 insertions, 0 deletions