]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: SCO: Fix sco_send_frame returning skb->len
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 16 Sep 2021 20:10:49 +0000 (13:10 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 21 Sep 2021 08:44:52 +0000 (10:44 +0200)
commit5c9ed1aba4d3a02527fc533a12018963025edbf9
tree92a7c708be8c5b17870728dc94e9c68c3994c8c6
parentad1e3ffe1416d616649d05cf9d4ec5d221bc002f
Bluetooth: SCO: Fix sco_send_frame returning skb->len

The skb in modified by hci_send_sco which pushes SCO headers thus
changing skb->len causing sco_sock_sendmsg to fail.

Fixes: 2cde62b2552e ("Bluetooth: SCO: Replace use of memcpy_from_msg with bt_skb_sendmsg")
Tested-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/sco.c