Skip to content

Commit

Permalink
kernel/relay.c: use kvfree() in relay_free_page_array()
Browse files Browse the repository at this point in the history
Use kvfree() instead of open-coding it.

Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
penberg authored and torvalds committed Jul 1, 2015
1 parent b389645 commit 200f1ce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kernel/relay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 200f1ce

Please sign in to comment.