Skip to content

Commit 3ca4ea3

Browse files
aryabinintorvalds
authored andcommitted
mm/vmalloc.c: improve vfree() kerneldoc
vfree() might sleep if called not in interrupt context. Explain that in the comment. Link: http://lkml.kernel.org/r/[email protected] 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 52414d3 commit 3ca4ea3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mm/vmalloc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,8 @@ void vfree_atomic(const void *addr)
15771577
* have CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG, but making the calling
15781578
* conventions for vfree() arch-depenedent would be a really bad idea)
15791579
*
1580+
* May sleep if called *not* from interrupt context.
1581+
*
15801582
* NOTE: assumes that the object at @addr has a size >= sizeof(llist_node)
15811583
*/
15821584
void vfree(const void *addr)

0 commit comments

Comments
 (0)