aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/avma1_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/hisax/avma1_cs.c')
-rw-r--r--drivers/isdn/hisax/avma1_cs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/hisax/avma1_cs.c b/drivers/isdn/hisax/avma1_cs.c
index 876fec6c6be8..9e70c206779e 100644
--- a/drivers/isdn/hisax/avma1_cs.c
+++ b/drivers/isdn/hisax/avma1_cs.c
@@ -123,11 +123,10 @@ static int avma1cs_probe(struct pcmcia_device *p_dev)
123 DEBUG(0, "avma1cs_attach()\n"); 123 DEBUG(0, "avma1cs_attach()\n");
124 124
125 /* Allocate space for private device-specific data */ 125 /* Allocate space for private device-specific data */
126 local = kmalloc(sizeof(local_info_t), GFP_KERNEL); 126 local = kzalloc(sizeof(local_info_t), GFP_KERNEL);
127 if (!local) 127 if (!local)
128 return -ENOMEM; 128 return -ENOMEM;
129 129
130 memset(local, 0, sizeof(local_info_t));
131 p_dev->priv = local; 130 p_dev->priv = local;
132 131
133 /* The io structure describes IO port mapping */ 132 /* The io structure describes IO port mapping */