forked from luck/tmp_suning_uos_patched
kernel/relay.c: use kvfree() in relay_free_page_array()
Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b389645f04
commit
200f1ce365
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user