mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
mm/iob: reserved bytes should be updated after each iteration
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -78,5 +78,6 @@ void iob_reserve(FAR struct iob_s *iob, unsigned int reserved)
|
|||||||
|
|
||||||
iob->io_offset = offset;
|
iob->io_offset = offset;
|
||||||
iob = iob->io_flink;
|
iob = iob->io_flink;
|
||||||
|
reserved -= offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user