summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2015-03-03 01:51:10 +0300
committerTejun Heo <tj@kernel.org>2015-03-03 16:47:25 +0300
commit587945147cfe48c84dd92c022e25aad6d92c0da8 (patch)
tree05fd13dbb6516c790bed86864706a1109c9f003a /kernel
parent295458e67284f57d154ec8156a22797c0cfb044a (diff)
downloadlinux-587945147cfe48c84dd92c022e25aad6d92c0da8.tar.xz
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')
-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);
}
/*