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
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
net
/
irda
/
ircomm
/
ircomm_core.c
diff --git
a/net/irda/ircomm/ircomm_core.c
b/net/irda/ircomm/ircomm_core.c
index
ad6b6af
..
2868819
100644
(file)
--- a/
net/irda/ircomm/ircomm_core.c
+++ b/
net/irda/ircomm/ircomm_core.c
@@
-29,6
+29,7
@@
*
********************************************************************/
*
********************************************************************/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
@@
-115,10
+116,12
@@
struct ircomm_cb *ircomm_open(notify_t *notify, __u8 service_type, int line)
IRDA_ASSERT(ircomm != NULL, return NULL;);
IRDA_ASSERT(ircomm != NULL, return NULL;);
- self = k
z
alloc(sizeof(struct ircomm_cb), GFP_ATOMIC);
+ self = k
m
alloc(sizeof(struct ircomm_cb), GFP_ATOMIC);
if (self == NULL)
return NULL;
if (self == NULL)
return NULL;
+ memset(self, 0, sizeof(struct ircomm_cb));
+
self->notify = *notify;
self->magic = IRCOMM_MAGIC;
self->notify = *notify;
self->magic = IRCOMM_MAGIC;