aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r--net/bluetooth/hci_sock.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index 27ec9088508f..71a02adbaa77 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -488,7 +488,11 @@ static int hci_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
488 skb_reset_transport_header(skb); 488 skb_reset_transport_header(skb);
489 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); 489 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied);
490 490
491 hci_sock_cmsg(sk, msg, skb); 491 switch (hci_pi(sk)->channel) {
492 case HCI_CHANNEL_RAW:
493 hci_sock_cmsg(sk, msg, skb);
494 break;
495 }
492 496
493 skb_free_datagram(sk, skb); 497 skb_free_datagram(sk, skb);
494 498