summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorGustavo Padovan2012-05-11 18:16:11 +0200
committerGustavo Padovan2012-05-16 21:12:49 +0200
commit087bfd99f75c5f7d5430e7e122c2f288f03d6c23 (patch)
tree46800ec29eadddfe157e0cc5c6f095b2eb8b6350 /net/bluetooth/l2cap_core.c
parentBluetooth: Fix wrong set of skb fragments (diff)
downloadkernel-qcow2-linux-087bfd99f75c5f7d5430e7e122c2f288f03d6c23.tar.gz
kernel-qcow2-linux-087bfd99f75c5f7d5430e7e122c2f288f03d6c23.tar.xz
kernel-qcow2-linux-087bfd99f75c5f7d5430e7e122c2f288f03d6c23.zip
Bluetooth: Fix packet size provided to the controller
When building fragmented skb's skb->len keeps track of the size of head plus all fragments combined, however when queueing the skb for sending we need to report the head size instead of the total size, so we just set skb->len to skb_headlen(). This bug appeared when implementing MSG_MORE support for L2CAP sockets, it never showed up before because l2cap_skbuff_fromiovec() never accounted skb size correctly. A following patch will fix this. Signed-off-by: Gustavo Padovan <gustavo@padovan.org> Reviewed-by: Mat Martineau <mathewm@codeaurora.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
0 files changed, 0 insertions, 0 deletions