diff options
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r-- | net/sunrpc/auth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 012f2a320638..d65dd7940102 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c | |||
@@ -375,13 +375,14 @@ rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, | |||
375 | } | 375 | } |
376 | EXPORT_SYMBOL_GPL(rpcauth_init_cred); | 376 | EXPORT_SYMBOL_GPL(rpcauth_init_cred); |
377 | 377 | ||
378 | static void | 378 | void |
379 | rpcauth_generic_bind_cred(struct rpc_task *task, struct rpc_cred *cred) | 379 | rpcauth_generic_bind_cred(struct rpc_task *task, struct rpc_cred *cred) |
380 | { | 380 | { |
381 | task->tk_msg.rpc_cred = get_rpccred(cred); | 381 | task->tk_msg.rpc_cred = get_rpccred(cred); |
382 | dprintk("RPC: %5u holding %s cred %p\n", task->tk_pid, | 382 | dprintk("RPC: %5u holding %s cred %p\n", task->tk_pid, |
383 | cred->cr_auth->au_ops->au_name, cred); | 383 | cred->cr_auth->au_ops->au_name, cred); |
384 | } | 384 | } |
385 | EXPORT_SYMBOL_GPL(rpcauth_generic_bind_cred); | ||
385 | 386 | ||
386 | static void | 387 | static void |
387 | rpcauth_bind_root_cred(struct rpc_task *task) | 388 | rpcauth_bind_root_cred(struct rpc_task *task) |
@@ -421,7 +422,7 @@ void | |||
421 | rpcauth_bindcred(struct rpc_task *task, struct rpc_cred *cred, int flags) | 422 | rpcauth_bindcred(struct rpc_task *task, struct rpc_cred *cred, int flags) |
422 | { | 423 | { |
423 | if (cred != NULL) | 424 | if (cred != NULL) |
424 | rpcauth_generic_bind_cred(task, cred); | 425 | cred->cr_ops->crbind(task, cred); |
425 | else if (flags & RPC_TASK_ROOTCREDS) | 426 | else if (flags & RPC_TASK_ROOTCREDS) |
426 | rpcauth_bind_root_cred(task); | 427 | rpcauth_bind_root_cred(task); |
427 | else | 428 | else |