From 91ca3984528d468f7f3a9bddb3bcc7bc11ee5269 Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Tue, 20 Jan 2009 19:32:59 -0500 Subject: [PATCH] --- yaml --- r: 130296 b: refs/heads/master c: bf935a78814cc9b96d09f612912178adc964ce9c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/nfsd/auth.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 9436ad16227a..87d960c9495f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ce0cf6622c9a6f18c2723ea4bef7616799a1ca39 +refs/heads/master: bf935a78814cc9b96d09f612912178adc964ce9c diff --git a/trunk/fs/nfsd/auth.c b/trunk/fs/nfsd/auth.c index c903e04aa217..b860d3484cd7 100644 --- a/trunk/fs/nfsd/auth.c +++ b/trunk/fs/nfsd/auth.c @@ -49,6 +49,8 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) new->fsuid = exp->ex_anon_uid; new->fsgid = exp->ex_anon_gid; gi = groups_alloc(0); + if (!gi) + goto oom; } else if (flags & NFSEXP_ROOTSQUASH) { if (!new->fsuid) new->fsuid = exp->ex_anon_uid;