diff options
Diffstat (limited to 'drivers/input/serio/parkbd.c')
-rw-r--r-- | drivers/input/serio/parkbd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/serio/parkbd.c b/drivers/input/serio/parkbd.c index 1d15c2819818..a5c1fb3a4a51 100644 --- a/drivers/input/serio/parkbd.c +++ b/drivers/input/serio/parkbd.c | |||
@@ -171,9 +171,8 @@ static struct serio * __init parkbd_allocate_serio(void) | |||
171 | { | 171 | { |
172 | struct serio *serio; | 172 | struct serio *serio; |
173 | 173 | ||
174 | serio = kmalloc(sizeof(struct serio), GFP_KERNEL); | 174 | serio = kzalloc(sizeof(struct serio), GFP_KERNEL); |
175 | if (serio) { | 175 | if (serio) { |
176 | memset(serio, 0, sizeof(struct serio)); | ||
177 | serio->id.type = parkbd_mode; | 176 | serio->id.type = parkbd_mode; |
178 | serio->write = parkbd_write, | 177 | serio->write = parkbd_write, |
179 | strlcpy(serio->name, "PARKBD AT/XT keyboard adapter", sizeof(serio->name)); | 178 | strlcpy(serio->name, "PARKBD AT/XT keyboard adapter", sizeof(serio->name)); |