]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Fix resource leakage in VF driver unbind
authorHariprasad Kelam <hkelam@marvell.com>
Mon, 9 Jan 2023 06:13:25 +0000 (11:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:58:31 +0000 (11:58 +0100)
commite4cbb770a78515cb6bfe0193fa9784fac0c785c3
treeeb67b10b47971547d0cb83f00f2364b121c13769
parent4a7ccfdc477c9048c5cac68e9a1fb6d832464b11
octeontx2-pf: Fix resource leakage in VF driver unbind

[ Upstream commit 53da7aec32982f5ee775b69dce06d63992ce4af3 ]

resources allocated like mcam entries to support the Ntuple feature
and hash tables for the tc feature are not getting freed in driver
unbind. This patch fixes the issue.

Fixes: 6d21166a46b1 ("octeontx2-pf: devlink params support to set mcam entry count")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Link: https://lore.kernel.org/r/20230109061325.21395-1-hkelam@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c