提交 8cbcb7e1 编写于 作者: J J. Bruce Fields 提交者: Zheng Zengkai

rpc: fix gss_svc_init cleanup on failure

stable inclusion
from stable-5.10.67
commit c53c68c9bf2a8543046360a1e75589f00c032d1a
bugzilla: 182619 https://gitee.com/openeuler/kernel/issues/I4EWO7

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c53c68c9bf2a8543046360a1e75589f00c032d1a

--------------------------------

[ Upstream commit 5a475344 ]

The failure case here should be rare, but it's obviously wrong.
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 dd08ff6f
......@@ -1980,7 +1980,7 @@ gss_svc_init_net(struct net *net)
goto out2;
return 0;
out2:
destroy_use_gss_proxy_proc_entry(net);
rsi_cache_destroy_net(net);
out1:
rsc_cache_destroy_net(net);
return rv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册