aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parport/parport_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/parport/parport_serial.c')
-rw-r--r--drivers/parport/parport_serial.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c
index 90ea3b8b99b0..bd6ad8b38168 100644
--- a/drivers/parport/parport_serial.c
+++ b/drivers/parport/parport_serial.c
@@ -324,10 +324,9 @@ static int __devinit parport_serial_pci_probe (struct pci_dev *dev,
324 struct parport_serial_private *priv; 324 struct parport_serial_private *priv;
325 int err; 325 int err;
326 326
327 priv = kmalloc (sizeof *priv, GFP_KERNEL); 327 priv = kzalloc (sizeof *priv, GFP_KERNEL);
328 if (!priv) 328 if (!priv)
329 return -ENOMEM; 329 return -ENOMEM;
330 memset(priv, 0, sizeof(struct parport_serial_private));
331 pci_set_drvdata (dev, priv); 330 pci_set_drvdata (dev, priv);
332 331
333 err = pci_enable_device (dev); 332 err = pci_enable_device (dev);