diff options
-rw-r--r-- | drivers/bluetooth/hci_h4.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c index c60623f206d4..8ae9f1ea2bb5 100644 --- a/drivers/bluetooth/hci_h4.c +++ b/drivers/bluetooth/hci_h4.c | |||
@@ -153,6 +153,9 @@ static int h4_recv(struct hci_uart *hu, void *data, int count) | |||
153 | { | 153 | { |
154 | int ret; | 154 | int ret; |
155 | 155 | ||
156 | if (!test_bit(HCI_UART_REGISTERED, &hu->flags)) | ||
157 | return -EUNATCH; | ||
158 | |||
156 | ret = hci_recv_stream_fragment(hu->hdev, data, count); | 159 | ret = hci_recv_stream_fragment(hu->hdev, data, count); |
157 | if (ret < 0) { | 160 | if (ret < 0) { |
158 | BT_ERR("Frame Reassembly Failed"); | 161 | BT_ERR("Frame Reassembly Failed"); |