Skip to content

Commit 52414d3

Browse files
aryabinintorvalds
authored andcommitted
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/[email protected] Fixes: 04b8e94 ("mm/util.c: improve kvfree() kerneldoc") Signed-off-by: Andrey Ryabinin <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent dedf2c7 commit 52414d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ EXPORT_SYMBOL(kvmalloc_node);
435435
* It is slightly more efficient to use kfree() or vfree() if you are certain
436436
* that you know which one to use.
437437
*
438-
* Context: Any context except NMI.
438+
* Context: Either preemptible task context or not-NMI interrupt.
439439
*/
440440
void kvfree(const void *addr)
441441
{

0 commit comments

Comments
 (0)