projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90a56f7
)
Bluetooth: Fix hci_sock_recvmsg when MSG_TRUNC is not set
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Mon, 15 Aug 2016 13:02:20 +0000
(16:02 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 25 Aug 2016 18:58:47 +0000
(20:58 +0200)
Similar to bt_sock_recvmsg MSG_TRUNC shall be checked using the original
flags not msg_flags.
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sock.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_sock.c
b/net/bluetooth/hci_sock.c
index
6ef8a01
..
96f04b7
100644
(file)
--- a/
net/bluetooth/hci_sock.c
+++ b/
net/bluetooth/hci_sock.c
@@
-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;