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
/
bluetooth
/
cmtp
/
capi.c
diff --git
a/net/bluetooth/cmtp/capi.c
b/net/bluetooth/cmtp/capi.c
index
ab166b4
..
18910ff
100644
(file)
--- a/
net/bluetooth/cmtp/capi.c
+++ b/
net/bluetooth/cmtp/capi.c
@@
-20,6
+20,7
@@
SOFTWARE IS DISCLAIMED.
*/
SOFTWARE IS DISCLAIMED.
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/types.h>
@@
-75,13
+76,15
@@
static struct cmtp_application *cmtp_application_add(struct cmtp_session *session, __u16 appl)
{
static struct cmtp_application *cmtp_application_add(struct cmtp_session *session, __u16 appl)
{
- struct cmtp_application *app = k
z
alloc(sizeof(*app), GFP_KERNEL);
+ struct cmtp_application *app = k
m
alloc(sizeof(*app), GFP_KERNEL);
BT_DBG("session %p application %p appl %d", session, app, appl);
if (!app)
return NULL;
BT_DBG("session %p application %p appl %d", session, app, appl);
if (!app)
return NULL;
+ memset(app, 0, sizeof(*app));
+
app->state = BT_OPEN;
app->appl = appl;
app->state = BT_OPEN;
app->appl = appl;