aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/namei.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index ffab2e06e147..4a8d998b7274 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1590,7 +1590,8 @@ static inline int walk_component(struct nameidata *nd, struct path *path,
1590 1590
1591 if (should_follow_link(path->dentry, follow)) { 1591 if (should_follow_link(path->dentry, follow)) {
1592 if (nd->flags & LOOKUP_RCU) { 1592 if (nd->flags & LOOKUP_RCU) {
1593 if (unlikely(unlazy_walk(nd, path->dentry))) { 1593 if (unlikely(nd->path.mnt != path->mnt ||
1594 unlazy_walk(nd, path->dentry))) {
1594 err = -ECHILD; 1595 err = -ECHILD;
1595 goto out_err; 1596 goto out_err;
1596 } 1597 }
@@ -3045,7 +3046,8 @@ finish_lookup:
3045 3046
3046 if (should_follow_link(path->dentry, !symlink_ok)) { 3047 if (should_follow_link(path->dentry, !symlink_ok)) {
3047 if (nd->flags & LOOKUP_RCU) { 3048 if (nd->flags & LOOKUP_RCU) {
3048 if (unlikely(unlazy_walk(nd, path->dentry))) { 3049 if (unlikely(nd->path.mnt != path->mnt ||
3050 unlazy_walk(nd, path->dentry))) {
3049 error = -ECHILD; 3051 error = -ECHILD;
3050 goto out; 3052 goto out;
3051 } 3053 }