aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/hci_h4.c2
-rw-r--r--drivers/bluetooth/hci_ll.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c
index c0ce8134814e..3f038f5308a4 100644
--- a/drivers/bluetooth/hci_h4.c
+++ b/drivers/bluetooth/hci_h4.c
@@ -246,7 +246,7 @@ static int h4_recv(struct hci_uart *hu, void *data, int count)
246 BT_ERR("Can't allocate mem for new packet"); 246 BT_ERR("Can't allocate mem for new packet");
247 h4->rx_state = H4_W4_PACKET_TYPE; 247 h4->rx_state = H4_W4_PACKET_TYPE;
248 h4->rx_count = 0; 248 h4->rx_count = 0;
249 return 0; 249 return -ENOMEM;
250 } 250 }
251 251
252 h4->rx_skb->dev = (void *) hu->hdev; 252 h4->rx_skb->dev = (void *) hu->hdev;
diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c
index 5c65014635be..91e44df84486 100644
--- a/drivers/bluetooth/hci_ll.c
+++ b/drivers/bluetooth/hci_ll.c
@@ -491,7 +491,7 @@ static int ll_recv(struct hci_uart *hu, void *data, int count)
491 BT_ERR("Can't allocate mem for new packet"); 491 BT_ERR("Can't allocate mem for new packet");
492 ll->rx_state = HCILL_W4_PACKET_TYPE; 492 ll->rx_state = HCILL_W4_PACKET_TYPE;
493 ll->rx_count = 0; 493 ll->rx_count = 0;
494 return 0; 494 return -ENOMEM;
495 } 495 }
496 496
497 ll->rx_skb->dev = (void *) hu->hdev; 497 ll->rx_skb->dev = (void *) hu->hdev;