Commit d4658c74 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] knfsd: Minor fix to error return when updating server authentication information

From: NeilBrown <neilb@cse.unsw.edu.au>
parent 4f9c4e9d
...@@ -389,11 +389,13 @@ static int rsc_parse(struct cache_detail *cd, ...@@ -389,11 +389,13 @@ static int rsc_parse(struct cache_detail *cd,
/* number of additional gid's */ /* number of additional gid's */
if (get_int(&mesg, &N)) if (get_int(&mesg, &N))
goto out; goto out;
status = -ENOMEM;
rsci.cred.cr_group_info = groups_alloc(N); rsci.cred.cr_group_info = groups_alloc(N);
if (rsci.cred.cr_group_info == NULL) if (rsci.cred.cr_group_info == NULL)
goto out; goto out;
/* gid's */ /* gid's */
status = -EINVAL;
for (i=0; i<N; i++) { for (i=0; i<N; i++) {
gid_t gid; gid_t gid;
if (get_int(&mesg, &gid)) if (get_int(&mesg, &gid))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment