diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-10-21 16:22:24 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-10-21 16:50:55 -0400 |
commit | 0e790c64f37a1a43c147720bdfa03b7c5538e24a (patch) | |
tree | 62184513e2436b5f331badd2ca050a237d0fb024 /net/bluetooth | |
parent | 8ffb929098a56939ac71509302eeab5b207bf262 (diff) |
Bluetooth: Add L2CAP channel to skb private data
Adding the channel to the skb private data makes possible to us know which
channel the skb we have came from.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap_sock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c index a159b0e05202..cba3162dc33d 100644 --- a/net/bluetooth/l2cap_sock.c +++ b/net/bluetooth/l2cap_sock.c | |||
@@ -1174,6 +1174,8 @@ static struct sk_buff *l2cap_sock_alloc_skb_cb(struct l2cap_chan *chan, | |||
1174 | if (!skb) | 1174 | if (!skb) |
1175 | return ERR_PTR(err); | 1175 | return ERR_PTR(err); |
1176 | 1176 | ||
1177 | bt_cb(skb)->chan = chan; | ||
1178 | |||
1177 | return skb; | 1179 | return skb; |
1178 | } | 1180 | } |
1179 | 1181 | ||