aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/vt.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-07-17 07:05:21 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 13:23:10 -0400
commita1152934c6339453f8bc365f449071d03796d411 (patch)
tree991557c5585791594bd85a39c08851654516e9d0 /drivers/char/vt.c
parentc4ebd9277705904aea25937c9a2d347c88c063c8 (diff)
Char: vt, use kzalloc
vt, use kzalloc Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/vt.c')
-rw-r--r--drivers/char/vt.c3
1 files changed, 1 insertions, 2 deletions
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 */
729 /* although the numbers above are not valid since long ago, the 729 /* although the numbers above are not valid since long ago, the
730 point is still up-to-date and the comment still has its value 730 point is still up-to-date and the comment still has its value
731 even if only as a historical artifact. --mj, July 1998 */ 731 even if only as a historical artifact. --mj, July 1998 */
732 vc = kmalloc(sizeof(struct vc_data), GFP_KERNEL); 732 vc = kzalloc(sizeof(struct vc_data), GFP_KERNEL);
733 if (!vc) 733 if (!vc)
734 return -ENOMEM; 734 return -ENOMEM;
735 memset(vc, 0, sizeof(*vc));
736 vc_cons[currcons].d = vc; 735 vc_cons[currcons].d = vc;
737 INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); 736 INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK);
738 visual_init(vc, currcons, 1); 737 visual_init(vc, currcons, 1);