]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sunrpc/auth_null.c
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
[karo-tx-linux.git] / net / sunrpc / auth_null.c
index f0ebe07978a236e66744bc2dfe332a92bfb85d05..712c123e04e9ec43464581115b7bfb4cf42e514b 100644 (file)
@@ -35,6 +35,8 @@ nul_destroy(struct rpc_auth *auth)
 static struct rpc_cred *
 nul_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags)
 {
+       if (flags & RPCAUTH_LOOKUP_RCU)
+               return &null_cred;
        return get_rpccred(&null_cred);
 }