diff options
author | 2015-03-02 17:51:10 -0500 | |
---|---|---|
committer | 2015-03-03 08:47:25 -0500 | |
commit | 587945147cfe48c84dd92c022e25aad6d92c0da8 (patch) | |
tree | 05fd13dbb6516c790bed86864706a1109c9f003a | |
parent | cgroup: call cgroup_subsys->bind on cgroup subsys initialization (diff) | |
download | linux-dev-587945147cfe48c84dd92c022e25aad6d92c0da8.tar.xz linux-dev-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>
-rw-r--r-- | kernel/cgroup.c | 5 |
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); } /* |