提交 58794514 编写于 作者: B Bandan Das 提交者: Tejun Heo

cgroup: Use kvfree in pidlist_free()

The wrapper already calls the appropriate free
function, use it instead of spinning our own.
Signed-off-by: NBandan Das <bsd@redhat.com>
Acked-by: NZefan Li <lizefan@huawei.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 295458e6
......@@ -3806,10 +3806,7 @@ static void *pidlist_allocate(int count)
static void pidlist_free(void *p)
{
if (is_vmalloc_addr(p))
vfree(p);
else
kfree(p);
kvfree(p);
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册