diff options
Diffstat (limited to 'net/sunrpc/auth_gss/auth_gss.c')
-rw-r--r-- | net/sunrpc/auth_gss/auth_gss.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 177a9e413c0a..766de0a41b22 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c | |||
@@ -727,15 +727,11 @@ gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) | |||
727 | if (!(cred = kzalloc(sizeof(*cred), GFP_KERNEL))) | 727 | if (!(cred = kzalloc(sizeof(*cred), GFP_KERNEL))) |
728 | goto out_err; | 728 | goto out_err; |
729 | 729 | ||
730 | atomic_set(&cred->gc_count, 1); | 730 | rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops); |
731 | cred->gc_uid = acred->uid; | ||
732 | /* | 731 | /* |
733 | * Note: in order to force a call to call_refresh(), we deliberately | 732 | * Note: in order to force a call to call_refresh(), we deliberately |
734 | * fail to flag the credential as RPCAUTH_CRED_UPTODATE. | 733 | * fail to flag the credential as RPCAUTH_CRED_UPTODATE. |
735 | */ | 734 | */ |
736 | cred->gc_flags = 0; | ||
737 | cred->gc_base.cr_auth = auth; | ||
738 | cred->gc_base.cr_ops = &gss_credops; | ||
739 | cred->gc_base.cr_flags = RPCAUTH_CRED_NEW; | 735 | cred->gc_base.cr_flags = RPCAUTH_CRED_NEW; |
740 | cred->gc_service = gss_auth->service; | 736 | cred->gc_service = gss_auth->service; |
741 | return &cred->gc_base; | 737 | return &cred->gc_base; |