projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dedf2c7
)
kvfree(): fix misleading comment
author
Andrey Ryabinin
<
[email protected]
>
Fri, 26 Oct 2018 22:07:00 +0000
(15:07 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 26 Oct 2018 23:26:33 +0000
(16:26 -0700)
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: 04b8e946075d ("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]
>
mm/util.c
patch
|
blob
|
history
diff --git
a/mm/util.c
b/mm/util.c
index f740754f50120b970ad903134ce3397e89bf51d4..8bf08b5b576061bd68d62d7e5eb15c89f3e1c5ad 100644
(file)
--- 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)
{