exit: pidns: alloc_pid() leaks pid_namespace if child_reaper is exiting
[pandora-kernel.git] / kernel / pid.c
index 9b9a266..82430c8 100644 (file)
@@ -341,6 +341,8 @@ out:
 
 out_unlock:
        spin_unlock_irq(&pidmap_lock);
+       put_pid_ns(ns);
+
 out_free:
        while (++i <= ns->level)
                free_pidmap(pid->numbers + i);