summaryrefslogtreecommitdiff
path: root/net/bluetooth/sco.c
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo@padovan.org>2012-05-11 16:16:11 (GMT)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-05-16 19:12:49 (GMT)
commit087bfd99f75c5f7d5430e7e122c2f288f03d6c23 (patch)
tree46800ec29eadddfe157e0cc5c6f095b2eb8b6350 /net/bluetooth/sco.c
parentfbe0070092c3968927c63ab56c00b47c6aa3770f (diff)
downloadlinux-fsl-qoriq-087bfd99f75c5f7d5430e7e122c2f288f03d6c23.tar.xz
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/sco.c')
0 files changed, 0 insertions, 0 deletions