diff options
Diffstat (limited to 'fs/sysfs/mount.c')
-rw-r--r-- | fs/sysfs/mount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 1b56686ab178..db81cfbab9d6 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c | |||
@@ -72,8 +72,7 @@ static int sysfs_init_fs_context(struct fs_context *fc) | |||
72 | fc->fs_private = kfc; | 72 | fc->fs_private = kfc; |
73 | fc->ops = &sysfs_fs_context_ops; | 73 | fc->ops = &sysfs_fs_context_ops; |
74 | if (netns) { | 74 | if (netns) { |
75 | if (fc->user_ns) | 75 | put_user_ns(fc->user_ns); |
76 | put_user_ns(fc->user_ns); | ||
77 | fc->user_ns = get_user_ns(netns->user_ns); | 76 | fc->user_ns = get_user_ns(netns->user_ns); |
78 | } | 77 | } |
79 | fc->global = true; | 78 | fc->global = true; |