proc: vmcore - use kzalloc in get_new_element()
authorCyrill Gorcunov <gorcunov@gmail.com>
Wed, 17 Jun 2009 23:26:00 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:41 +0000 (13:03 -0700)
commit2f6d311080c36e30a5fa87adca550dc6b51dbfdc
tree7ee0a11c33b538cb978848aeb7d46bb16df129b9
parentbcac2b1b7d67f4e7c001b755409fafb37cb0d888
proc: vmcore - use kzalloc in get_new_element()

Instead of kmalloc+memset better use straight kzalloc

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/vmcore.c