]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rpc: fix gss_svc_init cleanup on failure
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 12 Aug 2021 20:41:42 +0000 (16:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:13 +0000 (13:42 +0200)
[ 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>
net/sunrpc/auth_gss/svcauth_gss.c

index 6dff64374bfe11bb6fbbec0b8cf6fff25480189c..e22f2d65457da45f3f0a14ec6fe8517ee0cdf1c3 100644 (file)
@@ -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;