diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2005-09-09 22:10:16 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 23:03:43 +0200 |
commit | 80e93effce55044c5a7fa96e8b313640a80bd4e9 (patch) | |
tree | 339f0ac4c6d022ba048e109e51580c26ce4d252e /mm/slab.c | |
parent | [PATCH] docs: fix misinformation about overcommit_memory (diff) | |
download | linux-80e93effce55044c5a7fa96e8b313640a80bd4e9.tar.xz linux-80e93effce55044c5a7fa96e8b313640a80bd4e9.zip |
[PATCH] update kfree, vfree, and vunmap kerneldoc
This patch clarifies NULL handling of kfree() and vfree(). I addition,
wording of calling context restriction for vfree() and vunmap() are changed
from "may not" to "must not."
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/slab.c b/mm/slab.c index a041c5378dfa..05a391059fe1 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -2998,6 +2998,8 @@ EXPORT_SYMBOL(kzalloc); * kfree - free previously allocated memory * @objp: pointer returned by kmalloc. * + * If @objp is NULL, no operation is performed. + * * Don't free memory not originally allocated by kmalloc() * or you will run into trouble. */ |