]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix bt_sock_recvmsg when MSG_TRUNC is not set
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 12 Aug 2016 12:11:28 +0000 (15:11 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 25 Aug 2016 18:58:47 +0000 (20:58 +0200)
commite1b405d6f5d2239c5daac4eec69161da3e8f349d
tree77ae81d5190d168dff3f78c55de97a88865af6f5
parent5c02fa8167c7c5b8660930119497f369c54a175b
Bluetooth: Fix bt_sock_recvmsg when MSG_TRUNC is not set

Commit 7e0be40f8c327d718d700d1373b4be7f75135065 attempt to introduce
proper handling for MSG_TRUNC but recv and variants should still work
as read if no flag is passed, but because the code may set MSG_TRUNC to
msg->msg_flags that shall not be used as it may cause it to be behave as
if MSG_TRUNC is always, so instead of using it this changes the code to
use the flags parameter which shall contain the original flags.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/af_bluetooth.c