aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth_gss/auth_gss.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/auth_gss/auth_gss.c')
-rw-r--r--net/sunrpc/auth_gss/auth_gss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c
index 50809086fa1b..8b4c02f8befb 100644
--- a/net/sunrpc/auth_gss/auth_gss.c
+++ b/net/sunrpc/auth_gss/auth_gss.c
@@ -665,12 +665,13 @@ gss_destroy(struct rpc_auth *auth)
665 dprintk("RPC: destroying GSS authenticator %p flavor %d\n", 665 dprintk("RPC: destroying GSS authenticator %p flavor %d\n",
666 auth, auth->au_flavor); 666 auth, auth->au_flavor);
667 667
668 rpcauth_destroy_credcache(auth);
669
668 gss_auth = container_of(auth, struct gss_auth, rpc_auth); 670 gss_auth = container_of(auth, struct gss_auth, rpc_auth);
669 rpc_unlink(gss_auth->dentry); 671 rpc_unlink(gss_auth->dentry);
670 gss_auth->dentry = NULL; 672 gss_auth->dentry = NULL;
671 gss_mech_put(gss_auth->mech); 673 gss_mech_put(gss_auth->mech);
672 674
673 rpcauth_free_credcache(auth);
674 kfree(gss_auth); 675 kfree(gss_auth);
675 module_put(THIS_MODULE); 676 module_put(THIS_MODULE);
676} 677}