summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2015-06-30 23:58:33 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 04:44:58 +0200
commitc859aa83113dcad165d986e66aa21c5b73745f42 (patch)
tree6c705179b893cfe26873dafc2a215b023f0da431 /ipc
parentarc: use for_each_sg() (diff)
downloadlinux-c859aa83113dcad165d986e66aa21c5b73745f42.tar.xz
linux-c859aa83113dcad165d986e66aa21c5b73745f42.zip
ipc/util.c: use kvfree() in ipc_rcu_free()
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>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ipc/util.c b/ipc/util.c
index ff3323ef8d8b..537a41c7f633 100644
--- 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);
}
/**