rpc: fix gss_svc_init cleanup on failure

[ Upstream commit 5a4753446253a427c0ff1e433b9c4933e5af207c ]

The failure case here should be rare, but it's obviously wrong.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
J. Bruce Fields 2021-08-12 16:41:42 -04:00 committed by Greg Kroah-Hartman
parent 0bc818e023
commit 8dfd785ae1
1 changed files with 1 additions and 1 deletions

View File

@ -1937,7 +1937,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;