diff --git a/fs/namei.c b/fs/namei.c index c14dfac83c2bf1c8dc98f3ea21f9f3917e680555..d4d15bbc8af776f3290fb138c7856e8e3ae19b45 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -722,7 +722,7 @@ int follow_up(struct path *path) br_read_lock(&vfsmount_lock); parent = mnt->mnt_parent; - if (&parent->mnt == path->mnt) { + if (parent == mnt) { br_read_unlock(&vfsmount_lock); return 0; }