diff --git a/drivers/misc/rwbuffer.c b/drivers/misc/rwbuffer.c index 8468b56132..009756c1a0 100644 --- a/drivers/misc/rwbuffer.c +++ b/drivers/misc/rwbuffer.c @@ -819,7 +819,7 @@ int rwb_initialize(FAR struct rwbuffer_s *rwb) /* Allocate the write buffer */ - allocsize = rwb->wrmaxblocks * rwb->blocksize * 2; + allocsize = rwb->wrmaxblocks * rwb->blocksize; rwb->wrbuffer = kmm_malloc(allocsize); if (!rwb->wrbuffer) {