Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82405
b: refs/heads/master
c: d4395e0
h: refs/heads/master
i:
  82403: 23a1926
v: v3
  • Loading branch information
J. Bruce Fields committed Feb 1, 2008
1 parent bb81eb1 commit 8161b0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aefa89d178e6dd83889b66d4e800d4d77363900b
refs/heads/master: d4395e03fec0895d01451904b8a2276ceda663c9
9 changes: 3 additions & 6 deletions trunk/fs/nfsd/nfs4idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,10 @@ idtoname_parse(struct cache_detail *cd, char *buf, int buflen)
goto out;
if (len == 0)
set_bit(CACHE_NEGATIVE, &ent.h.flags);
else {
if (error >= IDMAP_NAMESZ) {
error = -EINVAL;
goto out;
}
else if (len >= IDMAP_NAMESZ)
goto out;
else
memcpy(ent.name, buf1, sizeof(ent.name));
}
error = -ENOMEM;
res = idtoname_update(&ent, res);
if (res == NULL)
Expand Down

0 comments on commit 8161b0a

Please sign in to comment.