diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_cs.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_cs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c index f63909e4bc32..ef470e6e1c2a 100644 --- a/drivers/net/wireless/hostap/hostap_cs.c +++ b/drivers/net/wireless/hostap/hostap_cs.c | |||
@@ -566,12 +566,11 @@ static int prism2_config(struct pcmcia_device *link) | |||
566 | PDEBUG(DEBUG_FLOW, "prism2_config()\n"); | 566 | PDEBUG(DEBUG_FLOW, "prism2_config()\n"); |
567 | 567 | ||
568 | parse = kmalloc(sizeof(cisparse_t), GFP_KERNEL); | 568 | parse = kmalloc(sizeof(cisparse_t), GFP_KERNEL); |
569 | hw_priv = kmalloc(sizeof(*hw_priv), GFP_KERNEL); | 569 | hw_priv = kzalloc(sizeof(*hw_priv), GFP_KERNEL); |
570 | if (parse == NULL || hw_priv == NULL) { | 570 | if (parse == NULL || hw_priv == NULL) { |
571 | ret = -ENOMEM; | 571 | ret = -ENOMEM; |
572 | goto failed; | 572 | goto failed; |
573 | } | 573 | } |
574 | memset(hw_priv, 0, sizeof(*hw_priv)); | ||
575 | 574 | ||
576 | tuple.DesiredTuple = CISTPL_CONFIG; | 575 | tuple.DesiredTuple = CISTPL_CONFIG; |
577 | tuple.Attributes = 0; | 576 | tuple.Attributes = 0; |