Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Suman Ghosh and committed by
David S. Miller
27c346a2 afa9e267

+1 -1
+1 -1
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
··· 1990 1990 free_bmap_reverse: 1991 1991 kfree(mcam->bmap_reverse); 1992 1992 free_bmap: 1993 - kfree(mcam->counters.bmap); 1993 + kfree(mcam->bmap); 1994 1994 1995 1995 return -ENOMEM; 1996 1996 }