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/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new e2b00a9fcc mm/iob: reserved bytes should be updated after each
iteration
e2b00a9fcc is described below
commit e2b00a9fcc85554812ea8e509b3f80397f83a192
Author: chao an <[email protected]>
AuthorDate: Wed Dec 7 18:05:44 2022 +0800
mm/iob: reserved bytes should be updated after each iteration
Signed-off-by: chao an <[email protected]>
---
mm/iob/iob_reserve.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/iob/iob_reserve.c b/mm/iob/iob_reserve.c
index 7181c6674b..2f459de3aa 100644
--- a/mm/iob/iob_reserve.c
+++ b/mm/iob/iob_reserve.c
@@ -78,5 +78,6 @@ void iob_reserve(FAR struct iob_s *iob, unsigned int reserved)
iob->io_offset = offset;
iob = iob->io_flink;
+ reserved -= offset;
}
}