diff options
Diffstat (limited to 'drivers/pcmcia/au1000_generic.c')
-rw-r--r-- | drivers/pcmcia/au1000_generic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pcmcia/au1000_generic.c b/drivers/pcmcia/au1000_generic.c index 0868b72c3996..971a35281649 100644 --- a/drivers/pcmcia/au1000_generic.c +++ b/drivers/pcmcia/au1000_generic.c | |||
@@ -354,13 +354,12 @@ int au1x00_pcmcia_socket_probe(struct device *dev, struct pcmcia_low_level *ops, | |||
354 | struct skt_dev_info *sinfo; | 354 | struct skt_dev_info *sinfo; |
355 | int ret, i; | 355 | int ret, i; |
356 | 356 | ||
357 | sinfo = kmalloc(sizeof(struct skt_dev_info), GFP_KERNEL); | 357 | sinfo = kzalloc(sizeof(struct skt_dev_info), GFP_KERNEL); |
358 | if (!sinfo) { | 358 | if (!sinfo) { |
359 | ret = -ENOMEM; | 359 | ret = -ENOMEM; |
360 | goto out; | 360 | goto out; |
361 | } | 361 | } |
362 | 362 | ||
363 | memset(sinfo, 0, sizeof(struct skt_dev_info)); | ||
364 | sinfo->nskt = nr; | 363 | sinfo->nskt = nr; |
365 | 364 | ||
366 | /* | 365 | /* |