Skip to content

Commit

Permalink
cgroup: Use kvfree in pidlist_free()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bandan Das authored and Tejun Heo committed Mar 3, 2015
1 parent 295458e commit 5879451
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 5879451

Please sign in to comment.