aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r--fs/proc/root.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c
index c6e9fac26bac..20834b3c8ea3 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -137,6 +137,8 @@ static void proc_kill_sb(struct super_block *sb)
137 struct pid_namespace *ns; 137 struct pid_namespace *ns;
138 138
139 ns = (struct pid_namespace *)sb->s_fs_info; 139 ns = (struct pid_namespace *)sb->s_fs_info;
140 if (ns->proc_self)
141 dput(ns->proc_self);
140 kill_anon_super(sb); 142 kill_anon_super(sb);
141 put_pid_ns(ns); 143 put_pid_ns(ns);
142} 144}