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
fedora core 6 1.2949 + vserver 2.2.0
[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
e53bf9e
..
a1e502f
100644
(file)
--- a/
net/irda/irnet/irnet_ppp.c
+++ b/
net/irda/irnet/irnet_ppp.c
@@
-476,11
+476,10
@@
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
m
alloc(sizeof(*ap), GFP_KERNEL);
+ ap = k
z
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 */