]> git.baikalelectronics.ru Git - kernel.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>
Wed, 22 Sep 2021 10:26:33 +0000 (12:26 +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 d5470c7fe87924f6eee4fe0613e4e982b3805fd5..c0016473a255afbdd3dd9d4e649b7d0cb283451e 100644 (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;