From: Jiri Slaby Date: Tue, 17 Jul 2007 11:05:21 +0000 (-0700) Subject: Char: vt, use kzalloc X-Git-Tag: v2.6.23-rc1~605 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a1152934c6339453f8bc365f449071d03796d411;p=linux-2.6-omap-h63xx.git Char: vt, use kzalloc vt, use kzalloc Signed-off-by: Jiri Slaby Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/vt.c b/drivers/char/vt.c index 6650ae1c088..5db295d7a87 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c @@ -729,10 +729,9 @@ int vc_allocate(unsigned int currcons) /* return 0 on success */ /* although the numbers above are not valid since long ago, the point is still up-to-date and the comment still has its value even if only as a historical artifact. --mj, July 1998 */ - vc = kmalloc(sizeof(struct vc_data), GFP_KERNEL); + vc = kzalloc(sizeof(struct vc_data), GFP_KERNEL); if (!vc) return -ENOMEM; - memset(vc, 0, sizeof(*vc)); vc_cons[currcons].d = vc; INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); visual_init(vc, currcons, 1);