mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
fix:uart_rpmsg_dmareceive data copy to nbuffer should start from data + length
Signed-off-by: guohao15 <guohao15@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
b874d95beb
commit
458bab9ae7
@@ -236,7 +236,7 @@ static void uart_rpmsg_dmareceive(FAR struct uart_dev_s *dev)
|
||||
if (len > xfer->length)
|
||||
{
|
||||
memcpy(xfer->buffer, msg->data, xfer->length);
|
||||
memcpy(xfer->nbuffer, msg->data, len - xfer->length);
|
||||
memcpy(xfer->nbuffer, msg->data + xfer->length, len - xfer->length);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user