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:
parent
530f5cd324
commit
0d609c451b
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue