diff options
Diffstat (limited to 'net/sunrpc/sched.c')
-rw-r--r-- | net/sunrpc/sched.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index cae219c8caeb..7db956f6e018 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c | |||
@@ -821,8 +821,10 @@ static void rpc_init_task(struct rpc_task *task, const struct rpc_task_setup *ta | |||
821 | /* Bind the user cred */ | 821 | /* Bind the user cred */ |
822 | if (task->tk_msg.rpc_cred != NULL) | 822 | if (task->tk_msg.rpc_cred != NULL) |
823 | rpcauth_holdcred(task); | 823 | rpcauth_holdcred(task); |
824 | else | 824 | else if (!(task_setup_data->flags & RPC_TASK_ROOTCREDS)) |
825 | rpcauth_bindcred(task); | 825 | rpcauth_bindcred(task); |
826 | else | ||
827 | rpcauth_bind_root_cred(task); | ||
826 | if (task->tk_action == NULL) | 828 | if (task->tk_action == NULL) |
827 | rpc_call_start(task); | 829 | rpc_call_start(task); |
828 | } | 830 | } |