aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 134d494158d9..88a904d5aa23 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1698,7 +1698,7 @@ int do_add_mount(struct vfsmount *newmnt, struct path *path,
1698 follow_down(&path->mnt, &path->dentry)) 1698 follow_down(&path->mnt, &path->dentry))
1699 ; 1699 ;
1700 err = -EINVAL; 1700 err = -EINVAL;
1701 if (!check_mnt(path->mnt)) 1701 if (!(mnt_flags & MNT_SHRINKABLE) && !check_mnt(path->mnt))
1702 goto unlock; 1702 goto unlock;
1703 1703
1704 /* Refuse the same filesystem on the same mount point */ 1704 /* Refuse the same filesystem on the same mount point */