mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 02:18:38 +08:00
Revert "fix: the bug about rwbuffer causing mem overflow"
This reverts commit e43aa99ae8.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user