summaryrefslogtreecommitdiff
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2015-03-02 17:51:10 -0500
committerTejun Heo <tj@kernel.org>2015-03-03 08:47:25 -0500
commit587945147cfe48c84dd92c022e25aad6d92c0da8 (patch)
tree05fd13dbb6516c790bed86864706a1109c9f003a /kernel/cgroup.c
parent295458e67284f57d154ec8156a22797c0cfb044a (diff)
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);
}
/*