From 1413fc0c1b48b1ae18b26f2f7da7790628a7f37e Mon Sep 17 00:00:00 2001 From: zhangshoukui Date: Thu, 29 Aug 2024 20:40:54 +0800 Subject: [PATCH] drivers/rwbuffer: Set nblocks 0 after using wrflush(skip rwbuffer) Signed-off-by: zhangshoukui Signed-off-by: dongjiuzhu1 --- drivers/misc/rwbuffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/rwbuffer.c b/drivers/misc/rwbuffer.c index 8e57625dcf..28b94f3df9 100644 --- a/drivers/misc/rwbuffer.c +++ b/drivers/misc/rwbuffer.c @@ -334,6 +334,8 @@ static ssize_t rwb_writebuffer(FAR struct rwbuffer_s *rwb, { return ret; } + + nblocks = 0; } while (nblocks > 0)