aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/sysfs/mount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c
index e7e3aa8e7b78..8d075272cace 100644
--- a/fs/sysfs/mount.c
+++ b/fs/sysfs/mount.c
@@ -45,8 +45,10 @@ static struct dentry *sysfs_mount(struct file_system_type *fs_type,
45 45
46static void sysfs_kill_sb(struct super_block *sb) 46static void sysfs_kill_sb(struct super_block *sb)
47{ 47{
48 void *ns = (void *)kernfs_super_ns(sb);
49
48 kernfs_kill_sb(sb); 50 kernfs_kill_sb(sb);
49 kobj_ns_drop(KOBJ_NS_TYPE_NET, (void *)kernfs_super_ns(sb)); 51 kobj_ns_drop(KOBJ_NS_TYPE_NET, ns);
50} 52}
51 53
52static struct file_system_type sysfs_fs_type = { 54static struct file_system_type sysfs_fs_type = {