linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / net / irda / irnet / irnet_ppp.c
index a1e502f..e53bf9e 100644 (file)
@@ -476,10 +476,11 @@ dev_irnet_open(struct inode *     inode,
 #endif /* SECURE_DEVIRNET */
 
   /* Allocate a private structure for this IrNET instance */
-  ap = kzalloc(sizeof(*ap), GFP_KERNEL);
+  ap = kmalloc(sizeof(*ap), GFP_KERNEL);
   DABORT(ap == NULL, -ENOMEM, FS_ERROR, "Can't allocate struct irnet...\n");
 
   /* initialize the irnet structure */
+  memset(ap, 0, sizeof(*ap));
   ap->file = file;
 
   /* PPP channel setup */