Recent changes (master)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following changes since commit a15118757dad19c7f17700903d169676f244e318:

  helper_thread: check for null scalloc return value (2024-06-11 16:19:38 -0400)

are available in the Git repository at:

  git://git.kernel.dk/fio.git master

for you to fetch changes up to bd7492a47a5bb0ec66a05ae0cff0c9065afb0f88:

  smalloc: add a comment explaining why scalloc does not zero memory (2024-06-12 13:06:09 -0400)

----------------------------------------------------------------
Vincent Fu (1):
      smalloc: add a comment explaining why scalloc does not zero memory

 smalloc.c | 4 ++++
 1 file changed, 4 insertions(+)

---

Diff of recent changes:

diff --git a/smalloc.c b/smalloc.c
index 23243054..ac7ef701 100644
--- a/smalloc.c
+++ b/smalloc.c
@@ -566,6 +566,10 @@ void *smalloc(size_t size)
 
 void *scalloc(size_t nmemb, size_t size)
 {
+	/*
+	 * smalloc_pool (called by smalloc) will zero the memory, so we don't
+	 * need to do it here.
+	 */
 	return smalloc(nmemb * size);
 }
 




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux