summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
authorBandan Das2015-03-02 23:51:10 +0100
committerTejun Heo2015-03-03 14:47:25 +0100
commit587945147cfe48c84dd92c022e25aad6d92c0da8 (patch)
tree05fd13dbb6516c790bed86864706a1109c9f003a /kernel/cgroup.c
parentcgroup: call cgroup_subsys->bind on cgroup subsys initialization (diff)
downloadkernel-qcow2-linux-587945147cfe48c84dd92c022e25aad6d92c0da8.tar.gz
kernel-qcow2-linux-587945147cfe48c84dd92c022e25aad6d92c0da8.tar.xz
kernel-qcow2-linux-587945147cfe48c84dd92c022e25aad6d92c0da8.zip
cgroup: Use kvfree in pidlist_free()
The wrapper already calls the appropriate free function, use it instead of spinning our own. Signed-off-by: Bandan Das <bsd@redhat.com> Acked-by: Zefan Li <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 21a4b6d61e21..a220fdb66568 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -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);
}
/*