mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 06:04:28 +08:00
drivers: serial: Add error for insuff buffer
Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user