diff options
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r-- | fs/proc/root.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c index 9c7fab1d23f0..41a6ea93f486 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
@@ -141,6 +141,8 @@ static void proc_kill_sb(struct super_block *sb) | |||
141 | struct pid_namespace *ns; | 141 | struct pid_namespace *ns; |
142 | 142 | ||
143 | ns = (struct pid_namespace *)sb->s_fs_info; | 143 | ns = (struct pid_namespace *)sb->s_fs_info; |
144 | if (ns->proc_self) | ||
145 | dput(ns->proc_self); | ||
144 | kill_anon_super(sb); | 146 | kill_anon_super(sb); |
145 | put_pid_ns(ns); | 147 | put_pid_ns(ns); |
146 | } | 148 | } |