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:
dongjiuzhu1 2024-04-22 19:49:59 +08:00 committed by Xiang Xiao
parent 530f5cd324
commit 0d609c451b
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{