Commit 200f1ce3 authored by Pekka Enberg's avatar Pekka Enberg Committed by Linus Torvalds

kernel/relay.c: use kvfree() in relay_free_page_array()

Use kvfree() instead of open-coding it.
Signed-off-by: 's avatarPekka Enberg <penberg@kernel.org>
Signed-off-by: 's avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: 's avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b389645f
......@@ -81,10 +81,7 @@ static struct page **relay_alloc_page_array(unsigned int n_pages)
*/
static void relay_free_page_array(struct page **array)
{
if (is_vmalloc_addr(array))
vfree(array);
else
kfree(array);
kvfree(array);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment