projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6e6b16
)
Bluetooth: Fix crash when monitor timeout expires
author
Gustavo F. Padovan
<
[email protected]
>
Sat, 1 May 2010 19:15:41 +0000
(16:15 -0300)
committer
Marcel Holtmann
<
[email protected]
>
Mon, 10 May 2010 07:28:50 +0000
(09:28 +0200)
The code was crashing due to a invalid access to hci_conn after the
channel disconnect.
Signed-off-by: Gustavo F. Padovan <
[email protected]
>
Reviewed-by: João Paulo Rechi Vita <
[email protected]
>
Signed-off-by: Marcel Holtmann <
[email protected]
>
net/bluetooth/l2cap.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap.c
b/net/bluetooth/l2cap.c
index 4c7b2d22faa5a536bf556ef3ae1ae7e780cf2809..2f9bbad428872700f1f33843c121ab9bab677fe6 100644
(file)
--- a/
net/bluetooth/l2cap.c
+++ b/
net/bluetooth/l2cap.c
@@
-1568,6
+1568,9
@@
static struct sk_buff *l2cap_create_iframe_pdu(struct sock *sk, struct msghdr *m
BT_DBG("sk %p len %d", sk, (int)len);
+ if (!conn)
+ return ERR_PTR(-ENOTCONN);
+
if (sdulen)
hlen += 2;