diff options
Diffstat (limited to 'drivers/parport/parport_cs.c')
-rw-r--r-- | drivers/parport/parport_cs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/parport/parport_cs.c b/drivers/parport/parport_cs.c index 8b7d84eca05d..802a81d47367 100644 --- a/drivers/parport/parport_cs.c +++ b/drivers/parport/parport_cs.c | |||
@@ -105,9 +105,8 @@ static int parport_probe(struct pcmcia_device *link) | |||
105 | DEBUG(0, "parport_attach()\n"); | 105 | DEBUG(0, "parport_attach()\n"); |
106 | 106 | ||
107 | /* Create new parport device */ | 107 | /* Create new parport device */ |
108 | info = kmalloc(sizeof(*info), GFP_KERNEL); | 108 | info = kzalloc(sizeof(*info), GFP_KERNEL); |
109 | if (!info) return -ENOMEM; | 109 | if (!info) return -ENOMEM; |
110 | memset(info, 0, sizeof(*info)); | ||
111 | link->priv = info; | 110 | link->priv = info; |
112 | info->p_dev = link; | 111 | info->p_dev = link; |
113 | 112 | ||