pidns: use kzalloc when allocating new pid_namespace struct
commit84406c153a5bfa5d8b428a0933e9d39db6b59a75
authorPavel Emelyanov <xemul@openvz.org>
Fri, 25 Jul 2008 08:48:42 +0000 (25 01:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:46 +0000 (25 10:53 -0700)
tree5f39add26e885b810118fbf1740a61f1aac88a4d
parent081e4c8a75692c21f3a119a81ca3270081879d0e
pidns: use kzalloc when allocating new pid_namespace struct

It makes many fields initialization implicit helping in auto-setting
#ifdef-ed fields (bsd-acct related pointer will be such).

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/pid_namespace.c