* [net-next PATCH] octeontx2-af: Fix a double free issue
@ 2023-12-18 18:02 Suman Ghosh
2023-12-18 19:10 ` Simon Horman
2023-12-22 13:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Suman Ghosh @ 2023-12-18 18:02 UTC (permalink / raw)
To: davem, edumazet, kuba, pabeni, sgoutham, sbhatta, jerinj, gakula,
hkelam, lcherian, netdev, linux-kernel, horms
Cc: Suman Ghosh
There was a memory leak during error handling in function
npc_mcam_rsrcs_init().
Fixes: dd7842878633 ("octeontx2-af: Add new devlink param to configure maximum usable NIX block LFs")
Suggested-by: Simon Horman <horms@kernel.org>
Signed-off-by: Suman Ghosh <sumang@marvell.com>
---
This is a follow-up of
https://urldefense.proofpoint.com/v2/url?u=https-3A__git.kernel.org_netdev_net-2Dnext_c_dd7842878633&d=DwIDaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=7si3Xn9Ly-Se1a655kvEPIYU0nQ9HPeN280sEUv5ROU&m=60aBCTsbI2Wra6po5SgIjqyAuIFqF5EhovKncvmmGaMwU94GDPEB2f_wC_piT9AE&s=7z2Gk48pbPhPqKU-pUu2xd2k6Ze5niLKk3P0iBiD9F8&e=
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
index 513c4fe86967..7f30e08b580f 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
@@ -1990,7 +1990,7 @@ int npc_mcam_rsrcs_init(struct rvu *rvu, int blkaddr)
free_bmap_reverse:
kfree(mcam->bmap_reverse);
free_bmap:
- kfree(mcam->counters.bmap);
+ kfree(mcam->bmap);
return -ENOMEM;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [net-next PATCH] octeontx2-af: Fix a double free issue
2023-12-18 18:02 [net-next PATCH] octeontx2-af: Fix a double free issue Suman Ghosh
@ 2023-12-18 19:10 ` Simon Horman
2023-12-22 13:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2023-12-18 19:10 UTC (permalink / raw)
To: Suman Ghosh
Cc: davem, edumazet, kuba, pabeni, sgoutham, sbhatta, jerinj, gakula,
hkelam, lcherian, netdev, linux-kernel
On Mon, Dec 18, 2023 at 11:32:58PM +0530, Suman Ghosh wrote:
> There was a memory leak during error handling in function
> npc_mcam_rsrcs_init().
>
> Fixes: dd7842878633 ("octeontx2-af: Add new devlink param to configure maximum usable NIX block LFs")
> Suggested-by: Simon Horman <horms@kernel.org>
> Signed-off-by: Suman Ghosh <sumang@marvell.com>
Hi Suman,
thanks for the quick fix.
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [net-next PATCH] octeontx2-af: Fix a double free issue
2023-12-18 18:02 [net-next PATCH] octeontx2-af: Fix a double free issue Suman Ghosh
2023-12-18 19:10 ` Simon Horman
@ 2023-12-22 13:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-12-22 13:40 UTC (permalink / raw)
To: Suman Ghosh
Cc: davem, edumazet, kuba, pabeni, sgoutham, sbhatta, jerinj, gakula,
hkelam, lcherian, netdev, linux-kernel, horms
Hello:
This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:
On Mon, 18 Dec 2023 23:32:58 +0530 you wrote:
> There was a memory leak during error handling in function
> npc_mcam_rsrcs_init().
>
> Fixes: dd7842878633 ("octeontx2-af: Add new devlink param to configure maximum usable NIX block LFs")
> Suggested-by: Simon Horman <horms@kernel.org>
> Signed-off-by: Suman Ghosh <sumang@marvell.com>
>
> [...]
Here is the summary with links:
- [net-next] octeontx2-af: Fix a double free issue
https://git.kernel.org/netdev/net-next/c/27c346a22f81
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-22 13:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-18 18:02 [net-next PATCH] octeontx2-af: Fix a double free issue Suman Ghosh
2023-12-18 19:10 ` Simon Horman
2023-12-22 13:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).