diff options
author | Andrey Ryabinin <aryabinin@virtuozzo.com> | 2018-10-26 18:07:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-26 19:26:33 -0400 |
commit | 52414d3302577bb60e4ba3c21b7957da7c7a8d21 (patch) | |
tree | df1443fb1b95cf7521e76653b9f4e264c9fcaa17 /mm/util.c | |
parent | dedf2c73b80b4566dfcae8ebe9ed46a38b63a1f9 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | */ |
440 | void kvfree(const void *addr) | 440 | void kvfree(const void *addr) |
441 | { | 441 | { |