Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117192
b: refs/heads/master
c: 6dfcde9
h: refs/heads/master
v: v3
  • Loading branch information
Krishna Kumar authored and J. Bruce Fields committed Oct 22, 2008
1 parent a142f06 commit 301764b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 6c6a426fdcb374b7641d7cf9eea88410828b9d9a
refs/heads/master: 6dfcde98a299196f13dd66417663a819f0ac4156
8 changes: 6 additions & 2 deletions trunk/fs/nfsd/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen)

/* now we want a pathname, or empty meaning NEGATIVE */
err = -EINVAL;
if ((len=qword_get(&mesg, buf, PAGE_SIZE)) < 0)
if ((len=qword_get(&mesg, buf, PAGE_SIZE)) < 0) {
cache_put(&ek->h, &svc_expkey_cache);
goto out;
}
dprintk("Path seems to be <%s>\n", buf);
err = 0;
if (len == 0) {
Expand All @@ -164,8 +166,10 @@ static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen)
} else {
struct nameidata nd;
err = path_lookup(buf, 0, &nd);
if (err)
if (err) {
cache_put(&ek->h, &svc_expkey_cache);
goto out;
}

dprintk("Found the path %s\n", buf);
key.ek_path = nd.path;
Expand Down

0 comments on commit 301764b

Please sign in to comment.