提交 c859aa83 编写于 作者: P Pekka Enberg 提交者: Linus Torvalds

ipc/util.c: use kvfree() in ipc_rcu_free()

Use kvfree() instead of open-coding it.
Signed-off-by: NPekka Enberg <penberg@kernel.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 92ed932d
...@@ -467,10 +467,7 @@ void ipc_rcu_free(struct rcu_head *head) ...@@ -467,10 +467,7 @@ void ipc_rcu_free(struct rcu_head *head)
{ {
struct ipc_rcu *p = container_of(head, struct ipc_rcu, rcu); struct ipc_rcu *p = container_of(head, struct ipc_rcu, rcu);
if (is_vmalloc_addr(p)) kvfree(p);
vfree(p);
else
kfree(p);
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册