Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58794514 authored by Bandan Das's avatar Bandan Das Committed by Tejun Heo
Browse files

cgroup: Use kvfree in pidlist_free()



The wrapper already calls the appropriate free
function, use it instead of spinning our own.

Signed-off-by: default avatarBandan Das <bsd@redhat.com>
Acked-by: default avatarZefan Li <lizefan@huawei.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 295458e6
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);
}

/*