Skip to content

Commit 27c346a

Browse files
sumang-mrvldavem330
authored andcommitted
octeontx2-af: Fix a double free issue
There was a memory leak during error handling in function npc_mcam_rsrcs_init(). Fixes: dd78428 ("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]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent afa9e26 commit 27c346a

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/marvell/octeontx2/af

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ int npc_mcam_rsrcs_init(struct rvu *rvu, int blkaddr)
19901990
free_bmap_reverse:
19911991
kfree(mcam->bmap_reverse);
19921992
free_bmap:
1993-
kfree(mcam->counters.bmap);
1993+
kfree(mcam->bmap);
19941994

19951995
return -ENOMEM;
19961996
}

0 commit comments

Comments
 (0)