Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83717
b: refs/heads/master
c: c55703d
h: refs/heads/master
i:
  83715: 7f0eaaf
v: v3
  • Loading branch information
Eric Van Hensbergen committed Feb 7, 2008
1 parent 0ff7a13 commit 55ca6b4
Show file tree
Hide file tree
Showing 2 changed files with 3 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: e2735b7720320b68590ca2b32b78ca91213931b2
refs/heads/master: c55703d807a8c6c239a5fea7b9cd7da08c27d7a9
4 changes: 2 additions & 2 deletions trunk/fs/9p/fid.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@ struct p9_fid *v9fs_fid_lookup(struct dentry *dentry)
if (!wnames)
return ERR_PTR(-ENOMEM);

for (d = dentry, i = n; i >= 0; i--, d = d->d_parent)
for (d = dentry, i = (n-1); i >= 0; i--, d = d->d_parent)
wnames[i] = (char *) d->d_name.name;

clone = 1;
i = 0;
while (i < n) {
l = min(n - i, P9_MAXWELEM);
fid = p9_client_walk(fid, l, &wnames[i], clone);
if (!fid) {
if (IS_ERR(fid)) {
kfree(wnames);
return fid;
}
Expand Down

0 comments on commit 55ca6b4

Please sign in to comment.