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:
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user