mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +08:00
drivers/rwbuffer: Should call rwb_wrflush in rwb_uninitialize
to avoid lose the cached data in the write buffer Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
David Sidrane
parent
a86a3d4d02
commit
62a840f992
@@ -880,6 +880,7 @@ void rwb_uninitialize(FAR struct rwbuffer_s *rwb)
|
||||
if (rwb->wrmaxblocks > 0)
|
||||
{
|
||||
rwb_wrcanceltimeout(rwb);
|
||||
rwb_wrflush(rwb);
|
||||
nxsem_destroy(&rwb->wrsem);
|
||||
if (rwb->wrbuffer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user