Use current task pid ns instead of pid ns for future children Signed-off-by: Kirill Tkhai <ktk...@virtuozzo.com> --- kernel/sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 0e3aa418a87f..34dcbc792482 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -339,7 +339,7 @@ static int proc_dointvec_pidmax(struct ctl_table *table, int write, struct ctl_table tmp; tmp = *table; - tmp.data = ¤t->nsproxy->pid_ns->pid_max; + tmp.data = &task_active_pid_ns(current)->pid_max; return proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); } _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel