Skip to content

Commit

Permalink
kvfree(): fix misleading comment
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
aryabinin authored and torvalds committed Oct 26, 2018
1 parent dedf2c7 commit 52414d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 52414d3

Please sign in to comment.