diff options
Diffstat (limited to 'drivers/isdn/hisax/config.c')
-rw-r--r-- | drivers/isdn/hisax/config.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c index cede72cdbb31..9d6b7b0f6746 100644 --- a/drivers/isdn/hisax/config.c +++ b/drivers/isdn/hisax/config.c | |||
@@ -869,14 +869,13 @@ static int checkcard(int cardnr, char *id, int *busy_flag, struct module *lockow | |||
869 | struct IsdnCard *card = cards + cardnr; | 869 | struct IsdnCard *card = cards + cardnr; |
870 | struct IsdnCardState *cs; | 870 | struct IsdnCardState *cs; |
871 | 871 | ||
872 | cs = kmalloc(sizeof(struct IsdnCardState), GFP_ATOMIC); | 872 | cs = kzalloc(sizeof(struct IsdnCardState), GFP_ATOMIC); |
873 | if (!cs) { | 873 | if (!cs) { |
874 | printk(KERN_WARNING | 874 | printk(KERN_WARNING |
875 | "HiSax: No memory for IsdnCardState(card %d)\n", | 875 | "HiSax: No memory for IsdnCardState(card %d)\n", |
876 | cardnr + 1); | 876 | cardnr + 1); |
877 | goto out; | 877 | goto out; |
878 | } | 878 | } |
879 | memset(cs, 0, sizeof(struct IsdnCardState)); | ||
880 | card->cs = cs; | 879 | card->cs = cs; |
881 | spin_lock_init(&cs->statlock); | 880 | spin_lock_init(&cs->statlock); |
882 | spin_lock_init(&cs->lock); | 881 | spin_lock_init(&cs->lock); |