Thread (3 messages) flat view 3 messages, 3 authors, 2021-01-08

Re: [PATCH] octeontx2-af: fix memory leak of lmac and lmac->name

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-01-08 02:43:21
Also in: kernel-janitors, lkml

On Thu, 7 Jan 2021 22:31:30 +0530 Sunil Kovvuri wrote:
On Thu, Jan 7, 2021 at 6:11 PM Colin King [off-list ref] wrote:
quoted
From: Colin Ian King <redacted>

Currently the error return paths don't kfree lmac and lmac->name
leading to some memory leaks.  Fix this by adding two error return
paths that kfree these objects

Addresses-Coverity: ("Resource leak")
Fixes: 1463f382f58d ("octeontx2-af: Add support for CGX link management")
Signed-off-by: Colin Ian King <redacted>
Thanks for the fix, looks good to me.
Consider venturing an Acked-by tag in the future so it can be recorded 
in git.

Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help