diff options
author | Andrey Ryabinin <aryabinin@virtuozzo.com> | 2018-10-27 00:07:00 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-27 01:26:33 +0200 |
commit | 52414d3302577bb60e4ba3c21b7957da7c7a8d21 (patch) | |
tree | df1443fb1b95cf7521e76653b9f4e264c9fcaa17 /mm/util.c | |
parent | mm/mempolicy.c: use match_string() helper to simplify the code (diff) | |
download | linux-52414d3302577bb60e4ba3c21b7957da7c7a8d21.tar.xz linux-52414d3302577bb60e4ba3c21b7957da7c7a8d21.zip |
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.c | 2 |
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); * It is slightly more efficient to use kfree() or vfree() if you are certain * that you know which one to use. * - * Context: Any context except NMI. + * Context: Either preemptible task context or not-NMI interrupt. */ void kvfree(const void *addr) { |