diff options
Diffstat (limited to 'arch/arm26/kernel/ecard.c')
-rw-r--r-- | arch/arm26/kernel/ecard.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm26/kernel/ecard.c b/arch/arm26/kernel/ecard.c index 047d0a408b9d..43dd41be71fb 100644 --- a/arch/arm26/kernel/ecard.c +++ b/arch/arm26/kernel/ecard.c | |||
@@ -620,12 +620,10 @@ ecard_probe(int slot, card_type_t type) | |||
620 | struct ex_ecid cid; | 620 | struct ex_ecid cid; |
621 | int i, rc = -ENOMEM; | 621 | int i, rc = -ENOMEM; |
622 | 622 | ||
623 | ec = kmalloc(sizeof(ecard_t), GFP_KERNEL); | 623 | ec = kzalloc(sizeof(ecard_t), GFP_KERNEL); |
624 | if (!ec) | 624 | if (!ec) |
625 | goto nomem; | 625 | goto nomem; |
626 | 626 | ||
627 | memset(ec, 0, sizeof(ecard_t)); | ||
628 | |||
629 | ec->slot_no = slot; | 627 | ec->slot_no = slot; |
630 | ec->type = type; | 628 | ec->type = type; |
631 | ec->irq = NO_IRQ; | 629 | ec->irq = NO_IRQ; |