Bluetooth: Fix hci_sock_recvmsg when MSG_TRUNC is not set
Subsystems (2)
Luiz Augusto von Dentz
maintainerPATCH 1/1 Bluetooth: Fix hci_sock_recvmsg when MSG_TRUNC is not set
From: Luiz Augusto von Dentz <[email protected]>
Similar to bt_sock_recvmsg MSG_TRUNC shall be checked using the original flags not msg_flags.
Signed-off-by Luiz Augusto von Dentz <[email protected]>
--- net/bluetooth/hci_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/hci_sock.c +1 -1
@@ -1091,7 +1091,7 @@ static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg,skb_free_datagram (sk, skb); -if (msg->msg_flags &MSG_TRUNC ) +if (flags &MSG_TRUNC ) copied = skblen;return err ? : copied;
Signature · 1 line
2.7.4
Marcel Holtmann
maintainerHi Luiz,
Quoted 7 lines
Similar to
bt_sock_recvmsgMSG_TRUNCshall be checked using the original flags notmsg_flags.Signed-off-by Luiz Augusto von Dentz <[email protected]>---
net/bluetooth/hci_sock.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
patch has been applied to bluetooth-stable tree.
Regards
Marcel