commit | 7641fc83a9a790b761b0c14852156a6651b7fc34 | [log] [tgz] |
---|---|---|
author | Vinicius Costa Gomes <vcgomes@gmail.com> | Wed Aug 10 19:14:28 2016 -0300 |
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Fri Aug 12 10:53:04 2016 +0300 |
tree | 771a1d48eebf40b49d915eee65a5f1067d0ff3b4 | |
parent | 375d02473fb7f8b90e39bc79001ab6f97a81bd3b [diff] |
core: Fix wrong expectations for the return of recv() Since commit b5f34f9420b50 "Bluetooth: Fix bt_sock_recvmsg return value" in the kernel, Bluetooth sockets of type SOCK_SEQPACKET, when read() will return the size of the packet received, which can be larger than the the buffer passed by user space. In this case the problem was causing a disconnection soon after the reception of an SDP request. Reported by: Alban Browaeys <prahal@yahoo.com>