diff --git a/drivers/serial/uart_bth4.c b/drivers/serial/uart_bth4.c index c63af7e3efb..f5c68ee62f6 100644 --- a/drivers/serial/uart_bth4.c +++ b/drivers/serial/uart_bth4.c @@ -174,6 +174,10 @@ static int uart_bth4_receive(FAR struct bt_driver_s *drv, uart_bth4_pollnotify(dev, POLLIN); } } + else + { + ret = -ENOMEM; + } leave_critical_section(flags); return ret;