aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/mount.c')
-rw-r--r--fs/sysfs/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c
index 20b8f82e115b..fb49510c5dcf 100644
--- a/fs/sysfs/mount.c
+++ b/fs/sysfs/mount.c
@@ -30,7 +30,7 @@ static struct dentry *sysfs_mount(struct file_system_type *fs_type,
30 void *ns; 30 void *ns;
31 bool new_sb; 31 bool new_sb;
32 32
33 if (!(flags & MS_KERNMOUNT)) { 33 if (!(flags & SB_KERNMOUNT)) {
34 if (!kobj_ns_current_may_mount(KOBJ_NS_TYPE_NET)) 34 if (!kobj_ns_current_may_mount(KOBJ_NS_TYPE_NET))
35 return ERR_PTR(-EPERM); 35 return ERR_PTR(-EPERM);
36 } 36 }