From c859aa83113dcad165d986e66aa21c5b73745f42 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 30 Jun 2015 14:58:33 -0700 Subject: ipc/util.c: use kvfree() in ipc_rcu_free() Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- ipc/util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ipc/util.c') 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); } /** -- cgit v1.2.3-59-g8ed1b