diff options
Diffstat (limited to 'drivers/pcmcia/soc_common.c')
-rw-r--r-- | drivers/pcmcia/soc_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c index a563bd9a8898..ea7d9ca160b2 100644 --- a/drivers/pcmcia/soc_common.c +++ b/drivers/pcmcia/soc_common.c | |||
@@ -645,13 +645,12 @@ int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops | |||
645 | 645 | ||
646 | down(&soc_pcmcia_sockets_lock); | 646 | down(&soc_pcmcia_sockets_lock); |
647 | 647 | ||
648 | sinfo = kmalloc(SKT_DEV_INFO_SIZE(nr), GFP_KERNEL); | 648 | sinfo = kzalloc(SKT_DEV_INFO_SIZE(nr), GFP_KERNEL); |
649 | if (!sinfo) { | 649 | if (!sinfo) { |
650 | ret = -ENOMEM; | 650 | ret = -ENOMEM; |
651 | goto out; | 651 | goto out; |
652 | } | 652 | } |
653 | 653 | ||
654 | memset(sinfo, 0, SKT_DEV_INFO_SIZE(nr)); | ||
655 | sinfo->nskt = nr; | 654 | sinfo->nskt = nr; |
656 | 655 | ||
657 | /* | 656 | /* |