diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index bdcd70544fce..9c4b9b811d7b 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1314,7 +1314,8 @@ static inline int walk_component(struct nameidata *nd, struct path *path, } if (should_follow_link(inode, follow)) { if (nd->flags & LOOKUP_RCU) { - if (unlikely(unlazy_walk(nd, path->dentry))) { + if (unlikely(nd->path.mnt != path->mnt || + unlazy_walk(nd, path->dentry))) { terminate_walk(nd); return -ECHILD; } |