Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197971
b: refs/heads/master
c: 9a22968
h: refs/heads/master
i:
  197969: 9ad9e85
  197967: 031ad00
v: v3
  • Loading branch information
Huang Shijie authored and Al Viro committed May 21, 2010
1 parent 82a13c0 commit bd1b12d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 51ee049e771c14a29aaee8ecd6cbbe14db088f3a
refs/heads/master: 9a2296832c43da93a88e1edd59f3d17acffca36c
5 changes: 3 additions & 2 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,10 @@ static void path_put_conditional(struct path *path, struct nameidata *nd)
static inline void path_to_nameidata(struct path *path, struct nameidata *nd)
{
dput(nd->path.dentry);
if (nd->path.mnt != path->mnt)
if (nd->path.mnt != path->mnt) {
mntput(nd->path.mnt);
nd->path.mnt = path->mnt;
nd->path.mnt = path->mnt;
}
nd->path.dentry = path->dentry;
}

Expand Down

0 comments on commit bd1b12d

Please sign in to comment.