Skip to content

Commit

Permalink
rpc: fix gss_svc_init cleanup on failure
Browse files Browse the repository at this point in the history
[ Upstream commit 5a47534 ]

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>
  • Loading branch information
J. Bruce Fields authored and gregkh committed Sep 18, 2021
1 parent 4b1b4d3 commit c53c68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/auth_gss/svcauth_gss.c
Expand Up @@ -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;
Expand Down

0 comments on commit c53c68c

Please sign in to comment.