Commit d671a1cb authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] namei fixes (19/19)

__do_follow_link() passes potentially worng vfsmount to touch_atime().  It
matters only in (currently impossible) case of symlink mounted on something,
but it's trivial to fix and that actually makes more sense.
Signed-off-by: default avatarAl Viro <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 634ee701
...@@ -503,7 +503,7 @@ static inline int __do_follow_link(struct path *path, struct nameidata *nd) ...@@ -503,7 +503,7 @@ static inline int __do_follow_link(struct path *path, struct nameidata *nd)
int error; int error;
struct dentry *dentry = path->dentry; struct dentry *dentry = path->dentry;
touch_atime(nd->mnt, dentry); touch_atime(path->mnt, dentry);
nd_set_link(nd, NULL); nd_set_link(nd, NULL);
if (path->mnt == nd->mnt) if (path->mnt == nd->mnt)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment