From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/2] Char: vt, use kzalloc
Date: Tue, 29 May 2007 12:43:39 +0200 (CEST) [thread overview]
Message-ID: <253477319205412858@wsc.cz> (raw)
vt, use kzalloc
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
commit daa738839b831a78b895ad9cec1da0157e4b1be7
tree 039d7b54429bd8256f59e493f17e43947a2f173e
parent 1a5e44385253ef9a193badf768f40543af6996ca
author Jiri Slaby <jirislaby@gmail.com> Sun, 27 May 2007 09:49:53 +0200
committer Jiri Slaby <jirislaby@gmail.com> 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);
next reply other threads:[~2007-05-29 10:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-29 10:43 Jiri Slaby [this message]
2007-05-29 10:44 ` [PATCH 2/2] Char: vt, use ARRAY_SIZE Jiri Slaby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=253477319205412858@wsc.cz \
--to=jirislaby@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox