Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs/core-api: memory-allocation: fix typo

"on the safe size" should be "on the safe side".

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Chris Packham and committed by
Jonathan Corbet
ef8330fe 822bbba0

+1 -1
+1 -1
Documentation/core-api/memory-allocation.rst
··· 88 88 ========================== 89 89 90 90 The most straightforward way to allocate memory is to use a function 91 - from the :c:func:`kmalloc` family. And, to be on the safe size it's 91 + from the :c:func:`kmalloc` family. And, to be on the safe side it's 92 92 best to use routines that set memory to zero, like 93 93 :c:func:`kzalloc`. If you need to allocate memory for an array, there 94 94 are :c:func:`kmalloc_array` and :c:func:`kcalloc` helpers.