You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/01/04 12:57:46 UTC
[incubator-nuttx] branch master updated: uart_rpmsg: fix data loss
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new dce8c96 uart_rpmsg: fix data loss
dce8c96 is described below
commit dce8c96281dc66082c4f2ad686d3f699fb52439d
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Fri Dec 31 15:22:50 2021 +0800
uart_rpmsg: fix data loss
Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
drivers/serial/uart_rpmsg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/serial/uart_rpmsg.c b/drivers/serial/uart_rpmsg.c
index c00839b..b63a2de 100644
--- a/drivers/serial/uart_rpmsg.c
+++ b/drivers/serial/uart_rpmsg.c
@@ -255,7 +255,7 @@ static void uart_rpmsg_dmasend(FAR struct uart_dev_s *dev)
if (len > xfer->length)
{
memcpy(msg->data, xfer->buffer, xfer->length);
- memcpy(msg->data, xfer->nbuffer, len - xfer->length);
+ memcpy(msg->data + xfer->length, xfer->nbuffer, len - xfer->length);
}
else
{