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>
This commit is contained in:
parent
295458e672
commit
587945147c
1 changed files with 1 additions and 4 deletions
|
@ -3806,10 +3806,7 @@ static void *pidlist_allocate(int count)
|
||||||
|
|
||||||
static void pidlist_free(void *p)
|
static void pidlist_free(void *p)
|
||||||
{
|
{
|
||||||
if (is_vmalloc_addr(p))
|
kvfree(p);
|
||||||
vfree(p);
|
|
||||||
else
|
|
||||||
kfree(p);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue