mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
2e2bc5a9a3
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> |
||
---|---|---|
.. | ||
hw | ||
test | ||
Kconfig | ||
Makefile | ||
ntb_transport.c | ||
ntb.c |