aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/auth_null.c')
-rw-r--r--net/sunrpc/auth_null.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth_null.c b/net/sunrpc/auth_null.c
index fe9b6aaf91eb..6c905fb11c5d 100644
--- a/net/sunrpc/auth_null.c
+++ b/net/sunrpc/auth_null.c
@@ -76,7 +76,7 @@ nul_marshal(struct rpc_task *task, __be32 *p)
76static int 76static int
77nul_refresh(struct rpc_task *task) 77nul_refresh(struct rpc_task *task)
78{ 78{
79 task->tk_msg.rpc_cred->cr_flags |= RPCAUTH_CRED_UPTODATE; 79 set_bit(RPCAUTH_CRED_UPTODATE, &task->tk_msg.rpc_cred->cr_flags);
80 return 0; 80 return 0;
81} 81}
82 82
@@ -136,7 +136,7 @@ struct rpc_cred null_cred = {
136 .cr_auth = &null_auth, 136 .cr_auth = &null_auth,
137 .cr_ops = &null_credops, 137 .cr_ops = &null_credops,
138 .cr_count = ATOMIC_INIT(1), 138 .cr_count = ATOMIC_INIT(1),
139 .cr_flags = RPCAUTH_CRED_UPTODATE, 139 .cr_flags = 1UL << RPCAUTH_CRED_UPTODATE,
140#ifdef RPC_DEBUG 140#ifdef RPC_DEBUG
141 .cr_magic = RPCAUTH_CRED_MAGIC, 141 .cr_magic = RPCAUTH_CRED_MAGIC,
142#endif 142#endif