Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234252
b: refs/heads/master
c: 7bc055d
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Mar 14, 2011
1 parent 5a296a1 commit b24b356
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: 13aab428a73d3200b9283b61b7fdf5713181ac66
refs/heads/master: 7bc055d1d524f209bf49d8b9cb220712dd7df4ed
15 changes: 4 additions & 11 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1407,22 +1407,19 @@ static int link_path_walk(const char *name, struct nameidata *nd)
err = do_lookup(nd, &this, &next, &inode);
if (err)
break;
err = -ENOENT;
if (!inode)
goto out_dput;

if (inode->i_op->follow_link) {
if (inode && inode->i_op->follow_link) {
err = do_follow_link(inode, &next, nd);
if (err)
goto return_err;
nd->inode = nd->path.dentry->d_inode;
err = -ENOENT;
if (!nd->inode)
break;
} else {
path_to_nameidata(&next, nd);
nd->inode = inode;
}
err = -ENOENT;
if (!nd->inode)
break;
err = -ENOTDIR;
if (!nd->inode->i_op->lookup)
break;
Expand Down Expand Up @@ -1472,10 +1469,6 @@ static int link_path_walk(const char *name, struct nameidata *nd)
nd->last = this;
nd->last_type = type;
return 0;
out_dput:
if (!(nd->flags & LOOKUP_RCU))
path_put_conditional(&next, nd);
break;
}
if (!(nd->flags & LOOKUP_RCU))
path_put(&nd->path);
Expand Down

0 comments on commit b24b356

Please sign in to comment.