netfilter: nf_tables: fix percpu memory leak at nf_tables_addchain()
stable inclusion from stable-v5.10.146 commit b043a525a3f5520abb676a7cd8f6328fdf959e88 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0VX Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b043a525a3f5520abb676a7cd8f6328fdf959e88 -------------------------------- [ Upstream commit 9a4d6dd5 ] It seems to me that percpu memory for chain stats started leaking since commit 3bc158f8 ("netfilter: nf_tables: map basechain priority to hardware priority") when nft_chain_offload_priority() returned an error. Signed-off-by:Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Fixes: 3bc158f8 ("netfilter: nf_tables: map basechain priority to hardware priority") Signed-off-by:
Florian Westphal <fw@strlen.de> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Jialin Zhang <zhangjialin11@huawei.com> Reviewed-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment