Revert "smalloc: smalloc() already clears memory, scalloc() need not do it again"
authorVincent Fu <vincent.fu@samsung.com>
Thu, 6 Jun 2024 17:57:47 +0000 (13:57 -0400)
committerVincent Fu <vincent.fu@samsung.com>
Thu, 6 Jun 2024 18:03:47 +0000 (14:03 -0400)
commiteb7fe4550ff2a569d0d8c71de16a1ea1e1aaf0a5
treee8885e219ac7a8d1b273fb606bf01b4e7ee7a8d7
parent695ab5c21d44a004b8f90bcc38b9331bc2d8feb7
Revert "smalloc: smalloc() already clears memory, scalloc() need not do it again"

Originally:
smalloc cleared the buffer
scalloc did not need to clear the differ

Later: 9c3e13e3314da394698ca32f21cc46d46b7cfe47
smalloc was changed to not clear the buffer
scalloc was not updated to clear the buffer when the above smalloc
change was made

Originally smalloc always cleared the buffer. So it wasn't necessary for
scalloc to clear it again. But later on smalloc was changed to no longer
clear the buffer but scalloc was not changed back to clear the buffer.

Reverting this commit makes scalloc clear the buffer again.

This reverts commit a640ed36829f3be6d9dd8c7974dba41b9b59e6a5.

Fixes: https://github.com/axboe/fio/issues/1772
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
smalloc.c