Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68772
b: refs/heads/master
c: c9b6cbe
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields committed Oct 9, 2007
1 parent e29d74f commit d929d92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 2fdada03b3876ab9f84ede160f187e888cafefb4
refs/heads/master: c9b6cbe56d3ac471e6cd72a59ec9e324b3417016
8 changes: 5 additions & 3 deletions trunk/fs/nfsd/nfs4idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ idtoname_parse(struct cache_detail *cd, char *buf, int buflen)
{
struct ent ent, *res;
char *buf1, *bp;
int len;
int error = -EINVAL;

if (buf[buflen - 1] != '\n')
Expand Down Expand Up @@ -248,10 +249,11 @@ idtoname_parse(struct cache_detail *cd, char *buf, int buflen)
goto out;

/* Name */
error = qword_get(&buf, buf1, PAGE_SIZE);
if (error == -EINVAL)
error = -EINVAL;
len = qword_get(&buf, buf1, PAGE_SIZE);
if (len < 0)
goto out;
if (error == -ENOENT)
if (len == 0)
set_bit(CACHE_NEGATIVE, &ent.h.flags);
else {
if (error >= IDMAP_NAMESZ) {
Expand Down

0 comments on commit d929d92

Please sign in to comment.