diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-07-17 13:05:21 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 19:23:10 +0200 |
commit | a1152934c6339453f8bc365f449071d03796d411 (patch) | |
tree | 991557c5585791594bd85a39c08851654516e9d0 /drivers/char/vt.c | |
parent | Char: riscom8, eliminate busy loop (diff) | |
download | linux-a1152934c6339453f8bc365f449071d03796d411.tar.xz linux-a1152934c6339453f8bc365f449071d03796d411.zip |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index 6650ae1c088f..5db295d7a879 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); |