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

2021-01-07 Thread Jakub Kicinski
On Thu, 7 Jan 2021 22:31:30 +0530 Sunil Kovvuri wrote: > On Thu, Jan 7, 2021 at 6:11 PM Colin King wrote: > > > > From: Colin Ian King > > > > 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 kfr

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

2021-01-07 Thread Sunil Kovvuri
On Thu, Jan 7, 2021 at 6:11 PM Colin King wrote: > > From: Colin Ian King > > 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: 1

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

2021-01-07 Thread Colin King
From: Colin Ian King 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")