X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Firda%2Firnet%2Firnet_ppp.c;h=e53bf9e0053ee831d46639a4e70917c0436af585;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=a1e502ff90709a0e98b1da34e48e88eee7bd019c;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/net/irda/irnet/irnet_ppp.c b/net/irda/irnet/irnet_ppp.c index a1e502ff9..e53bf9e00 100644 --- a/net/irda/irnet/irnet_ppp.c +++ b/net/irda/irnet/irnet_ppp.c @@ -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 */