projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce0cf66
)
nfsd: fix null dereference on error path
author
J. Bruce Fields
<bfields@fieldses.org>
Wed, 21 Jan 2009 00:32:59 +0000
(19:32 -0500)
committer
J. Bruce Fields
<bfields@pig.fieldses.org>
Tue, 27 Jan 2009 22:26:58 +0000
(17:26 -0500)
We're forgetting to check the return value from groups_alloc().
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/auth.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/auth.c
b/fs/nfsd/auth.c
index
c903e04
..
b860d34
100644
(file)
--- a/
fs/nfsd/auth.c
+++ b/
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;