aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/isdnloop/isdnloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/isdnloop/isdnloop.c')
-rw-r--r--drivers/isdn/isdnloop/isdnloop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/isdnloop/isdnloop.c b/drivers/isdn/isdnloop/isdnloop.c
index c3ae2edaf6fa..e3add27dd0e1 100644
--- a/drivers/isdn/isdnloop/isdnloop.c
+++ b/drivers/isdn/isdnloop/isdnloop.c
@@ -1430,12 +1430,11 @@ isdnloop_initcard(char *id)
1430 isdnloop_card *card; 1430 isdnloop_card *card;
1431 int i; 1431 int i;
1432 1432
1433 if (!(card = (isdnloop_card *) kmalloc(sizeof(isdnloop_card), GFP_KERNEL))) { 1433 if (!(card = kzalloc(sizeof(isdnloop_card), GFP_KERNEL))) {
1434 printk(KERN_WARNING 1434 printk(KERN_WARNING
1435 "isdnloop: (%s) Could not allocate card-struct.\n", id); 1435 "isdnloop: (%s) Could not allocate card-struct.\n", id);
1436 return (isdnloop_card *) 0; 1436 return (isdnloop_card *) 0;
1437 } 1437 }
1438 memset((char *) card, 0, sizeof(isdnloop_card));
1439 card->interface.owner = THIS_MODULE; 1438 card->interface.owner = THIS_MODULE;
1440 card->interface.channels = ISDNLOOP_BCH; 1439 card->interface.channels = ISDNLOOP_BCH;
1441 card->interface.hl_hdrlen = 1; /* scratch area for storing ack flag*/ 1440 card->interface.hl_hdrlen = 1; /* scratch area for storing ack flag*/