aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/act2000/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/act2000/module.c')
-rw-r--r--drivers/isdn/act2000/module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/act2000/module.c b/drivers/isdn/act2000/module.c
index 90593e2ef872..e3e5c1399076 100644
--- a/drivers/isdn/act2000/module.c
+++ b/drivers/isdn/act2000/module.c
@@ -573,12 +573,11 @@ act2000_alloccard(int bus, int port, int irq, char *id)
573{ 573{
574 int i; 574 int i;
575 act2000_card *card; 575 act2000_card *card;
576 if (!(card = (act2000_card *) kmalloc(sizeof(act2000_card), GFP_KERNEL))) { 576 if (!(card = kzalloc(sizeof(act2000_card), GFP_KERNEL))) {
577 printk(KERN_WARNING 577 printk(KERN_WARNING
578 "act2000: (%s) Could not allocate card-struct.\n", id); 578 "act2000: (%s) Could not allocate card-struct.\n", id);
579 return; 579 return;
580 } 580 }
581 memset((char *) card, 0, sizeof(act2000_card));
582 spin_lock_init(&card->lock); 581 spin_lock_init(&card->lock);
583 spin_lock_init(&card->mnlock); 582 spin_lock_init(&card->mnlock);
584 skb_queue_head_init(&card->sndq); 583 skb_queue_head_init(&card->sndq);