summaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
authorAndrey Ryabinin <aryabinin@virtuozzo.com>2018-10-26 18:07:00 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-10-26 19:26:33 -0400
commit52414d3302577bb60e4ba3c21b7957da7c7a8d21 (patch)
treedf1443fb1b95cf7521e76653b9f4e264c9fcaa17 /mm/util.c
parentdedf2c73b80b4566dfcae8ebe9ed46a38b63a1f9 (diff)
kvfree(): fix misleading comment
vfree() might sleep if called not in interrupt context. So does kvfree() too. Fix misleading kvfree()'s comment about allowed context. Link: http://lkml.kernel.org/r/20180914130512.10394-1-aryabinin@virtuozzo.com Fixes: 04b8e946075d ("mm/util.c: improve kvfree() kerneldoc") Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/util.c')
-rw-r--r--mm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/util.c b/mm/util.c
index f740754f5012..8bf08b5b5760 100644
--- a/mm/util.c
+++ b/mm/util.c
@@ -435,7 +435,7 @@ EXPORT_SYMBOL(kvmalloc_node);
435 * It is slightly more efficient to use kfree() or vfree() if you are certain 435 * It is slightly more efficient to use kfree() or vfree() if you are certain
436 * that you know which one to use. 436 * that you know which one to use.
437 * 437 *
438 * Context: Any context except NMI. 438 * Context: Either preemptible task context or not-NMI interrupt.
439 */ 439 */
440void kvfree(const void *addr) 440void kvfree(const void *addr)
441{ 441{