]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:14:19 +0000 (17:14 +0200)
commit1e804a9846fe882ddd9c28e331bd974ad1d82521
treeaaec8243273709788c65074cfe15f4f2dda1fb53
parente07b1aab8fb107fac0d42586268b9a61e46a0a08
Bluetooth: SCO: Fix sco_send_frame returning skb->len

commit b8fe61a692b741c68ef1888a26481fc9fb6f3025 upstream.

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

Fixes: 99a849f60da6 ("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>
Cc: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/sco.c