* [OOPS+PATCH 2.6] Fix oops in parkbd
@ 2004-10-10 4:52 Dmitry Torokhov
0 siblings, 0 replies; only message in thread
From: Dmitry Torokhov @ 2004-10-10 4:52 UTC (permalink / raw)
To: LKML; +Cc: Andrew Morton, Vojtech Pavlik
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));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-10 4:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-10 4:52 [OOPS+PATCH 2.6] Fix oops in parkbd Dmitry Torokhov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.