summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2013-05-08 01:18:18 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-05-08 03:38:27 +0200
commitc9fcee5132d51875384e764aed85036458956de9 (patch)
treec7ff48498d31522585fa621e5bd539484cebc958 /mm
parentremove unused random32() and srandom32() (diff)
downloadlinux-c9fcee5132d51875384e764aed85036458956de9.tar.xz
linux-c9fcee5132d51875384e764aed85036458956de9.zip
mm/vmalloc.c: add vfree comment
Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index b12fd8612604..d365724feb05 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -1522,6 +1522,8 @@ static void __vunmap(const void *addr, int deallocate_pages)
* Must not be called in NMI context (strictly speaking, only if we don't
* have CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG, but making the calling
* conventions for vfree() arch-depenedent would be a really bad idea)
+ *
+ * NOTE: assumes that the object at *addr has a size >= sizeof(llist_node)
*
*/
void vfree(const void *addr)