diff options
Diffstat (limited to 'net/sunrpc/auth_unix.c')
-rw-r--r-- | net/sunrpc/auth_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth_unix.c b/net/sunrpc/auth_unix.c index f17dabbab1c7..29d50ffa69d6 100644 --- a/net/sunrpc/auth_unix.c +++ b/net/sunrpc/auth_unix.c | |||
@@ -72,7 +72,7 @@ unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) | |||
72 | return ERR_PTR(-ENOMEM); | 72 | return ERR_PTR(-ENOMEM); |
73 | 73 | ||
74 | rpcauth_init_cred(&cred->uc_base, acred, auth, &unix_credops); | 74 | rpcauth_init_cred(&cred->uc_base, acred, auth, &unix_credops); |
75 | cred->uc_base.cr_flags = RPCAUTH_CRED_UPTODATE; | 75 | cred->uc_base.cr_flags = 1UL << RPCAUTH_CRED_UPTODATE; |
76 | if (flags & RPCAUTH_LOOKUP_ROOTCREDS) { | 76 | if (flags & RPCAUTH_LOOKUP_ROOTCREDS) { |
77 | cred->uc_uid = 0; | 77 | cred->uc_uid = 0; |
78 | cred->uc_gid = 0; | 78 | cred->uc_gid = 0; |
@@ -172,7 +172,7 @@ unx_marshal(struct rpc_task *task, __be32 *p) | |||
172 | static int | 172 | static int |
173 | unx_refresh(struct rpc_task *task) | 173 | unx_refresh(struct rpc_task *task) |
174 | { | 174 | { |
175 | task->tk_msg.rpc_cred->cr_flags |= RPCAUTH_CRED_UPTODATE; | 175 | set_bit(RPCAUTH_CRED_UPTODATE, &task->tk_msg.rpc_cred->cr_flags); |
176 | return 0; | 176 | return 0; |
177 | } | 177 | } |
178 | 178 | ||