mm/iob: reserved bytes should be updated after each iteration

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-12-07 18:05:44 +08:00 committed by Xiang Xiao
parent 756e2419c1
commit e2b00a9fcc

View File

@ -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;
}
}