]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sunrpc/auth.c
CRED: Wrap task credential accesses in the SunRPC protocol
[karo-tx-linux.git] / net / sunrpc / auth.c
index cb216b2df666dc260b79a0d0f2259ac123d5fabf..8fc3805788074e6f0e26b28d17395194c4d2a157 100644 (file)
@@ -351,8 +351,8 @@ struct rpc_cred *
 rpcauth_lookupcred(struct rpc_auth *auth, int flags)
 {
        struct auth_cred acred = {
-               .uid = current->fsuid,
-               .gid = current->fsgid,
+               .uid = current_fsuid(),
+               .gid = current_fsgid(),
                .group_info = current->group_info,
        };
        struct rpc_cred *ret;