mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
octeontx2-af: Fix a double free issue
There was a memory leak during error handling in function
npc_mcam_rsrcs_init().
Fixes: dd78428786 ("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>
This commit is contained in:
parent
afa9e26748
commit
27c346a22f
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user