Commit 943f3b8b authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by Paolo Abeni
Browse files

octeontx2-pf: Unregister devlink on probe failure



When probe fails after devlink registration, the missing devlink unregister
call causing a memory leak.

Fixes: 2da48943 ("octeontx2-pf: devlink params support to set mcam entry count")
Signed-off-by: default avatarHariprasad Kelam <hkelam@marvell.com>
Link: https://patch.msgid.link/20260206182645.4032737-1-hkelam@marvell.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent e9a5073a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3315,6 +3315,7 @@ static int otx2_probe(struct pci_dev *pdev, const struct pci_device_id *id)
err_sriov_cleannup:
	otx2_sriov_vfcfg_cleanup(pf);
err_pf_sriov_init:
	otx2_unregister_dl(pf);
	otx2_shutdown_tc(pf);
err_mcam_flow_del:
	otx2_mcam_flow_del(pf);