aboutsummaryrefslogtreecommitdiff
path: root/fs/proc/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r--fs/proc/root.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c
index 574bafc41f0b..6296c7626963 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -149,6 +149,8 @@ static void proc_kill_sb(struct super_block *sb)
ns = (struct pid_namespace *)sb->s_fs_info;
if (ns->proc_self)
dput(ns->proc_self);
+ if (ns->proc_thread_self)
+ dput(ns->proc_thread_self);
kill_anon_super(sb);
put_pid_ns(ns);
}
@@ -170,7 +172,8 @@ void __init proc_root_init(void)
return;
proc_self_init();
- proc_symlink("mounts", NULL, "self/mounts");
+ proc_thread_self_init();
+ proc_symlink("mounts", NULL, "thread-self/mounts");
proc_net_init();