octeontx2-af: Fix a double free issue
PATCH 1/1 octeontx2-af: Fix a double free issue
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 <[email protected]>
Signed-off-by Suman Ghosh <[email protected]>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +1 -1
@@ -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 ; }
Signature · 1 line
2.25.1
Quoted 6 lines · 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 <[email protected]>Signed-off-by Suman Ghosh <[email protected]>
Hi Suman,
thanks for the quick fix.
Reviewed-by Simon Horman <[email protected]>
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 8 lines · 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 <[email protected]>Signed-off-by Suman Ghosh <[email protected]>[...]
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!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html