From 0921979adc1232ed78ce22adf9be4ef0f92ce4c9 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Tue, 28 Dec 2021 10:10:52 +0100 Subject: [PATCH] Bluetooth: Drivers: Fix bad return for bt_esp_evt_recv Instead of returning NULL, the function had a `continue`. Signed-off-by: Emil Gydesen --- drivers/bluetooth/hci/hci_esp32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci/hci_esp32.c b/drivers/bluetooth/hci/hci_esp32.c index 43171a8100f..70da2163da9 100644 --- a/drivers/bluetooth/hci/hci_esp32.c +++ b/drivers/bluetooth/hci/hci_esp32.c @@ -93,7 +93,7 @@ static struct net_buf *bt_esp_evt_recv(uint8_t *data, size_t remaining) BT_ERR("Not enough space in buffer %zu/%zu", remaining, buf_tailroom); net_buf_unref(buf); - continue; + return NULL; } net_buf_add_mem(buf, data, remaining);