aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/serial_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/serial_cs.c')
-rw-r--r--drivers/serial/serial_cs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/serial/serial_cs.c b/drivers/serial/serial_cs.c
index 431433f4dd6d..10baa2c91302 100644
--- a/drivers/serial/serial_cs.c
+++ b/drivers/serial/serial_cs.c
@@ -334,10 +334,9 @@ static int serial_probe(struct pcmcia_device *link)
334 DEBUG(0, "serial_attach()\n"); 334 DEBUG(0, "serial_attach()\n");
335 335
336 /* Create new serial device */ 336 /* Create new serial device */
337 info = kmalloc(sizeof (*info), GFP_KERNEL); 337 info = kzalloc(sizeof (*info), GFP_KERNEL);
338 if (!info) 338 if (!info)
339 return -ENOMEM; 339 return -ENOMEM;
340 memset(info, 0, sizeof (*info));
341 info->p_dev = link; 340 info->p_dev = link;
342 link->priv = info; 341 link->priv = info;
343 342