mirror of https://github.com/torvalds/linux.git
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: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
daa26ea63c
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue