Skip to content

octeontx2-af: CGX: fix bitmap leaks

Bo Sun lkml netdev stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review 1 of 2 applied
  2. v11 patch 5 repliesSuperseded

Changes in v2 from the cover letter

- Update patch 1 to use rvu_free_bitmap() instead of open-coding kfree()
- Add patch 2 to keep the alloc/free API pairing consistent

Patches in v2 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2octeontx2-af: CGX: fix bitmap leaksdrivers/net/ethernet/marvell/octeontx2/af/cgx.c+2 -02 repliesApplied
2/2octeontx2-af: CGX: replace kfree() with rvu_free_bitmap()drivers/net/ethernet/marvell/octeontx2/af/cgx.c+1 -12 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchVadim FedorenkoJijie Shao
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net v2 0/2] octeontx2-af: CGX: fix bitmap leaks

Patch 1 fixes the RX/TX flow-control bitmap leaks in cgx_lmac_exit(). The leak was introduced in commit e740003874ed ("octeontx2-af: Flow control resource management").
Patch 2 converts the existing kfree() for mac_to_index_bmap to rvu_free_bitmap() for consistency with the alloc/free API pairing.

Changes in v2:
- Update patch 1 to use rvu_free_bitmap() instead of open-coding kfree()
- Add patch 2 to keep the alloc/free API pairing consistent

Bo Sun (2):
octeontx2-af: CGX: fix bitmap leaks
octeontx2-af: CGX: replace kfree() with rvu_free_bitmap()

 drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)