Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

octeontx2-pf: Unregister devlink on probe failure

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

Fixes: 2da489432747 ("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>

authored by

Hariprasad Kelam and committed by
Paolo Abeni
943f3b8b e9a5073a

+1
+1
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
··· 3315 3315 err_sriov_cleannup: 3316 3316 otx2_sriov_vfcfg_cleanup(pf); 3317 3317 err_pf_sriov_init: 3318 + otx2_unregister_dl(pf); 3318 3319 otx2_shutdown_tc(pf); 3319 3320 err_mcam_flow_del: 3320 3321 otx2_mcam_flow_del(pf);