linux_dsm_epyc7002/drivers/ntb/test
Colin Ian King 2e2bc5a9a3 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>
2018-01-28 22:17:24 -05:00
..
Kconfig ntb: ntb perf tool 2016-01-17 22:08:05 -05:00
Makefile ntb: ntb perf tool 2016-01-17 22:08:05 -05:00
ntb_perf.c NTB: ntb_perf: fix printing of resource_size_t 2018-01-28 22:17:24 -05:00
ntb_pingpong.c NTB: ntb_pp: Add full multi-port NTB API support 2018-01-28 22:17:24 -05:00
ntb_tool.c NTB: ntb_tool: fix memory leak on 'buf' on error exit path 2018-01-28 22:17:24 -05:00