mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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:
committed by
Linus Torvalds
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)
|
static void relay_free_page_array(struct page **array)
|
||||||
{
|
{
|
||||||
if (is_vmalloc_addr(array))
|
kvfree(array);
|
||||||
vfree(array);
|
|
||||||
else
|
|
||||||
kfree(array);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user