Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231783
b: refs/heads/master
c: 8931221
h: refs/heads/master
i:
  231781: a6ee6b9
  231779: e05b38c
  231775: 1aa6082
v: v3
  • Loading branch information
Ian Kent authored and Al Viro committed Jan 18, 2011
1 parent 9cc6536 commit 7902c1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: c14cc63a63e94d490ac6517a555113c30d420db4
refs/heads/master: 8931221411f9ff950de8fd686dc5ab881394cb9a
4 changes: 3 additions & 1 deletion trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,8 +1272,10 @@ static int do_lookup(struct nameidata *nd, struct qstr *name,
path->mnt = mnt;
path->dentry = dentry;
err = follow_managed(path, nd->flags);
if (unlikely(err < 0))
if (unlikely(err < 0)) {
path_put_conditional(path, nd);
return err;
}
*inode = path->dentry->d_inode;
return 0;

Expand Down

0 comments on commit 7902c1d

Please sign in to comment.