summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth_unix.c
diff options
context:
space:
mode:
authorTrond Myklebust2008-06-11 00:31:01 +0200
committerTrond Myklebust2008-07-09 18:08:48 +0200
commit0f38b873aeaae698c3693748438547c8493165fb (patch)
treec858b2a08251c2f5792cf83582697dcd9909b7d8 /net/sunrpc/auth_unix.c
parentNFS: Revert commit 44dd151d (diff)
downloadkernel-qcow2-linux-0f38b873aeaae698c3693748438547c8493165fb.tar.gz
kernel-qcow2-linux-0f38b873aeaae698c3693748438547c8493165fb.tar.xz
kernel-qcow2-linux-0f38b873aeaae698c3693748438547c8493165fb.zip
SUNRPC: Use GFP_NOFS when allocating credentials
Since the credentials may be allocated during the call to rpc_new_task(), which again may be called by a memory allocator... Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/auth_unix.c')
-rw-r--r--net/sunrpc/auth_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/auth_unix.c b/net/sunrpc/auth_unix.c
index 44920b90bdc4..46b2647c5bd2 100644
--- a/net/sunrpc/auth_unix.c
+++ b/net/sunrpc/auth_unix.c
@@ -66,7 +66,7 @@ unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags)
dprintk("RPC: allocating UNIX cred for uid %d gid %d\n",
acred->uid, acred->gid);
- if (!(cred = kmalloc(sizeof(*cred), GFP_KERNEL)))
+ if (!(cred = kmalloc(sizeof(*cred), GFP_NOFS)))
return ERR_PTR(-ENOMEM);
rpcauth_init_cred(&cred->uc_base, acred, auth, &unix_credops);