diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 5af7681e8ea3..a7f7f44119b3 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -503,7 +503,7 @@ static inline int __do_follow_link(struct path *path, struct nameidata *nd) | |||
503 | int error; | 503 | int error; |
504 | struct dentry *dentry = path->dentry; | 504 | struct dentry *dentry = path->dentry; |
505 | 505 | ||
506 | touch_atime(nd->mnt, dentry); | 506 | touch_atime(path->mnt, dentry); |
507 | nd_set_link(nd, NULL); | 507 | nd_set_link(nd, NULL); |
508 | 508 | ||
509 | if (path->mnt == nd->mnt) | 509 | if (path->mnt == nd->mnt) |