Skip to content

Commit daa26ea

Browse files
committed
Merge branch 'octeontx2-fix-bitmap-leaks-in-pf-and-vf'
Bo Sun says: ==================== octeontx2: fix bitmap leaks in PF and VF Two small patches that free the AF_XDP bitmap in the PF and VF remove paths. Both carry the same Fixes tag and should go to stable. ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 2aff442 + 92e9f4f commit daa26ea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3542,6 +3542,7 @@ static void otx2_remove(struct pci_dev *pdev)
35423542
otx2_disable_mbox_intr(pf);
35433543
otx2_pfaf_mbox_destroy(pf);
35443544
pci_free_irq_vectors(pf->pdev);
3545+
bitmap_free(pf->af_xdp_zc_qidx);
35453546
pci_set_drvdata(pdev, NULL);
35463547
free_netdev(netdev);
35473548
}

drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ static void otx2vf_remove(struct pci_dev *pdev)
854854
qmem_free(vf->dev, vf->dync_lmt);
855855
otx2vf_vfaf_mbox_destroy(vf);
856856
pci_free_irq_vectors(vf->pdev);
857+
bitmap_free(vf->af_xdp_zc_qidx);
857858
pci_set_drvdata(pdev, NULL);
858859
free_netdev(netdev);
859860
}

0 commit comments

Comments
 (0)