diff options
author | Suman Ghosh <sumang@marvell.com> | 2023-12-18 21:02:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-22 16:31:54 +0300 |
commit | 27c346a22f816b1d02e9303c572b4b8e31b75f98 (patch) | |
tree | 1d79b3b9600e6aed2cfa2fee3b3b29bdad4a76fa | |
parent | afa9e267486321c93a2fd15ffa4dc8b2e76ca682 (diff) | |
download | linux-27c346a22f816b1d02e9303c572b4b8e31b75f98.tar.xz |
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 <horms@kernel.org>
Signed-off-by: Suman Ghosh <sumang@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ free_entry_map: free_bmap_reverse: kfree(mcam->bmap_reverse); free_bmap: - kfree(mcam->counters.bmap); + kfree(mcam->bmap); return -ENOMEM; } |