git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
net
/
irda
/
irnet
/
irnet_ppp.c
diff --git
a/net/irda/irnet/irnet_ppp.c
b/net/irda/irnet/irnet_ppp.c
index
a1e502f
..
e53bf9e
100644
(file)
--- 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 */
#endif /* SECURE_DEVIRNET */
/* Allocate a private structure for this IrNET instance */
- ap = k
z
alloc(sizeof(*ap), GFP_KERNEL);
+ ap = k
m
alloc(sizeof(*ap), GFP_KERNEL);
DABORT(ap == NULL, -ENOMEM, FS_ERROR, "Can't allocate struct irnet...\n");
/* initialize the irnet structure */
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 */
ap->file = file;
/* PPP channel setup */