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:
2dfa100
)
Bluetooth: trivial: Use defined PSMLEN instead of magic
author
Andrei Emeltchenko
<andrei.emeltchenko@intel.com>
Tue, 29 May 2012 07:04:05 +0000
(10:04 +0300)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:11 +0000
(06:34 +0300)
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap_core.c
b/net/bluetooth/l2cap_core.c
index 6f30d1da89a0b4baee22e81a49192af4f81819a9..778c0c8cdc59f867eaf604c46509137b77293e22 100644
(file)
--- a/
net/bluetooth/l2cap_core.c
+++ b/
net/bluetooth/l2cap_core.c
@@
-5235,7
+5235,7
@@
static void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb)
case L2CAP_CID_CONN_LESS:
psm = get_unaligned((__le16 *) skb->data);
- skb_pull(skb,
2
);
+ skb_pull(skb,
L2CAP_PSMLEN_SIZE
);
l2cap_conless_channel(conn, psm, skb);
break;