Skip to content

Commit 943f3b8

Browse files
Hariprasad KelamPaolo Abeni
authored andcommitted
octeontx2-pf: Unregister devlink on probe failure
When probe fails after devlink registration, the missing devlink unregister call causing a memory leak. Fixes: 2da4894 ("octeontx2-pf: devlink params support to set mcam entry count") Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Link: https://patch.msgid.link/20260206182645.4032737-1-hkelam@marvell.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent e9a5073 commit 943f3b8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/net/ethernet/marvell/octeontx2/nic

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,6 +3315,7 @@ static int otx2_probe(struct pci_dev *pdev, const struct pci_device_id *id)
33153315
err_sriov_cleannup:
33163316
otx2_sriov_vfcfg_cleanup(pf);
33173317
err_pf_sriov_init:
3318+
otx2_unregister_dl(pf);
33183319
otx2_shutdown_tc(pf);
33193320
err_mcam_flow_del:
33203321
otx2_mcam_flow_del(pf);

0 commit comments

Comments
 (0)