]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/sunrpc/auth.c
NFSv4: Don't use cred->cr_ops->cr_name in nfs4_proc_setclientid()
[mv-sheeva.git] / net / sunrpc / auth.c
index 012f2a3206386c7a44e798b75c1c7e5f8031790d..0632cd0a1ad7f926a7ef6032845d0e9dc48afdf7 100644 (file)
@@ -356,7 +356,6 @@ rpcauth_lookupcred(struct rpc_auth *auth, int flags)
        put_group_info(acred.group_info);
        return ret;
 }
-EXPORT_SYMBOL_GPL(rpcauth_lookupcred);
 
 void
 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred,
@@ -375,13 +374,14 @@ rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred,
 }
 EXPORT_SYMBOL_GPL(rpcauth_init_cred);
 
-static void
+void
 rpcauth_generic_bind_cred(struct rpc_task *task, struct rpc_cred *cred)
 {
        task->tk_msg.rpc_cred = get_rpccred(cred);
        dprintk("RPC: %5u holding %s cred %p\n", task->tk_pid,
                        cred->cr_auth->au_ops->au_name, cred);
 }
+EXPORT_SYMBOL_GPL(rpcauth_generic_bind_cred);
 
 static void
 rpcauth_bind_root_cred(struct rpc_task *task)
@@ -421,7 +421,7 @@ void
 rpcauth_bindcred(struct rpc_task *task, struct rpc_cred *cred, int flags)
 {
        if (cred != NULL)
-               rpcauth_generic_bind_cred(task, cred);
+               cred->cr_ops->crbind(task, cred);
        else if (flags & RPC_TASK_ROOTCREDS)
                rpcauth_bind_root_cred(task);
        else