From: Dmitry Torokhov <dtor_core@ameritech.net>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>, Vojtech Pavlik <vojtech@suse.cz>
Subject: [OOPS+PATCH 2.6] Fix oops in parkbd
Date: Sat, 9 Oct 2004 23:52:38 -0500 [thread overview]
Message-ID: <200410092352.39785.dtor_core@ameritech.net> (raw)
When converting to dynamic serio allocation I messed up parkbd
causing it to Oops when registering its serio port.
--
Dmitry
===================================================================
ChangeSet@1.1961, 2004-10-09 08:09:54-05:00, dtor_core@ameritech.net
Input: parkbd - zero-fill allocated serio structure to
prevent Oops when registering port.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
parkbd.c | 1 +
1 files changed, 1 insertion(+)
===================================================================
diff -Nru a/drivers/input/serio/parkbd.c b/drivers/input/serio/parkbd.c
--- a/drivers/input/serio/parkbd.c 2004-10-09 23:49:06 -05:00
+++ b/drivers/input/serio/parkbd.c 2004-10-09 23:49:06 -05:00
@@ -160,6 +160,7 @@
serio = kmalloc(sizeof(struct serio), GFP_KERNEL);
if (serio) {
+ memset(serio, 0, sizeof(struct serio));
serio->type = parkbd_mode;
serio->write = parkbd_write,
strlcpy(serio->name, "PARKBD AT/XT keyboard adapter", sizeof(serio->name));
reply other threads:[~2004-10-10 4:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200410092352.39785.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/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