vt, use kzalloc

Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]>

---
commit daa738839b831a78b895ad9cec1da0157e4b1be7
tree 039d7b54429bd8256f59e493f17e43947a2f173e
parent 1a5e44385253ef9a193badf768f40543af6996ca
author Jiri Slaby <[EMAIL PROTECTED]> Sun, 27 May 2007 09:49:53 +0200
committer Jiri Slaby <[EMAIL PROTECTED]> Tue, 29 May 2007 12:41:08 +0200

 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 bbd9fc4..1cc960a 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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to