mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
[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: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
634ee7017b
commit
d671a1cbf7
@ -503,7 +503,7 @@ static inline int __do_follow_link(struct path *path, struct nameidata *nd)
|
||||
int error;
|
||||
struct dentry *dentry = path->dentry;
|
||||
|
||||
touch_atime(nd->mnt, dentry);
|
||||
touch_atime(path->mnt, dentry);
|
||||
nd_set_link(nd, NULL);
|
||||
|
||||
if (path->mnt == nd->mnt)
|
||||
|
Loading…
Reference in New Issue
Block a user