diff options
author | Bandan Das <bsd@redhat.com> | 2015-03-02 17:51:10 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-03-03 08:47:25 -0500 |
commit | 587945147cfe48c84dd92c022e25aad6d92c0da8 (patch) | |
tree | 05fd13dbb6516c790bed86864706a1109c9f003a /kernel | |
parent | 295458e67284f57d154ec8156a22797c0cfb044a (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')
-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) | |||
3806 | 3806 | ||
3807 | static void pidlist_free(void *p) | 3807 | static void pidlist_free(void *p) |
3808 | { | 3808 | { |
3809 | if (is_vmalloc_addr(p)) | 3809 | kvfree(p); |
3810 | vfree(p); | ||
3811 | else | ||
3812 | kfree(p); | ||
3813 | } | 3810 | } |
3814 | 3811 | ||
3815 | /* | 3812 | /* |