Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310059
b: refs/heads/master
c: 54c33e7
h: refs/heads/master
i:
  310057: 6cbf4ae
  310055: 25a2f95
v: v3
  • Loading branch information
Miklos Szeredi authored and Al Viro committed Jun 1, 2012
1 parent a125b3a commit 65c343f
Show file tree
Hide file tree
Showing 2 changed files with 5 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: d45ea86792db9679ed010b2c3df3db32b2ce5bde
refs/heads/master: 54c33e7f95284539e52ec2d99dcdf6efd29b247f
6 changes: 4 additions & 2 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -2361,8 +2361,10 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
BUG_ON(nd->flags & LOOKUP_RCU);
inode = path->dentry->d_inode;
error = -ENOENT;
if (!inode)
goto exit_dput;
if (!inode) {
path_to_nameidata(path, nd);
goto exit;
}

if (should_follow_link(inode, !symlink_ok)) {
if (nd->flags & LOOKUP_RCU) {
Expand Down

0 comments on commit 65c343f

Please sign in to comment.