[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1431714923-23028-1-git-send-email-penberg@kernel.org>
Date: Fri, 15 May 2015 21:35:10 +0300
From: Pekka Enberg <penberg@...nel.org>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, Pekka Enberg <penberg@...nel.org>
Subject: [PATCH 01/14] ipc/util.c: Use kvfree() in ipc_rcu_free()
Use kvfree() instead of open-coding it.
Signed-off-by: Pekka Enberg <penberg@...nel.org>
---
ipc/util.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/ipc/util.c b/ipc/util.c
index ff3323e..537a41c 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);
}
/**
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists