From: Pekka Enberg Date: Tue, 30 Jun 2015 21:59:06 +0000 (-0700) Subject: kernel/relay.c: use kvfree() in relay_free_page_array() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=200f1ce3656b8f466f74756677cea1b5e2aa851a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git kernel/relay.c: use kvfree() in relay_free_page_array() Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/relay.c b/kernel/relay.c index e9dbaeb8fd65..0b4570cfacae 100644 --- a/kernel/relay.c +++ b/kernel/relay.c @@ -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); } /**