projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92ed932
)
ipc/util.c: use kvfree() in ipc_rcu_free()
author
Pekka Enberg
<penberg@kernel.org>
Tue, 30 Jun 2015 21:58:33 +0000
(14:58 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 1 Jul 2015 02:44:58 +0000
(19:44 -0700)
Use kvfree() instead of open-coding it.
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/util.c
patch
|
blob
|
blame
|
history
diff --git
a/ipc/util.c
b/ipc/util.c
index ff3323ef8d8b4ea62f04306748e76cebd2f573e8..537a41c7f6339190fead16543da6e13448a44019 100644
(file)
--- a/
ipc/util.c
+++ b/
ipc/util.c
@@
-467,10
+467,7
@@
void ipc_rcu_free(struct rcu_head *head)
{
struct ipc_rcu *p = container_of(head, struct ipc_rcu, rcu);
- if (is_vmalloc_addr(p))
- vfree(p);
- else
- kfree(p);
+ kvfree(p);
}
/**