Commit daa26ea6 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

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/20250930061236.31359-1-bo@mboxify.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parents 2aff4420 92e9f4fa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3542,6 +3542,7 @@ static void otx2_remove(struct pci_dev *pdev)
	otx2_disable_mbox_intr(pf);
	otx2_pfaf_mbox_destroy(pf);
	pci_free_irq_vectors(pf->pdev);
	bitmap_free(pf->af_xdp_zc_qidx);
	pci_set_drvdata(pdev, NULL);
	free_netdev(netdev);
}
+1 −0
Original line number Diff line number Diff line
@@ -854,6 +854,7 @@ static void otx2vf_remove(struct pci_dev *pdev)
		qmem_free(vf->dev, vf->dync_lmt);
	otx2vf_vfaf_mbox_destroy(vf);
	pci_free_irq_vectors(vf->pdev);
	bitmap_free(vf->af_xdp_zc_qidx);
	pci_set_drvdata(pdev, NULL);
	free_netdev(netdev);
}