From e8745f9c1a7c2522cad79b8eb4d102fe60a984d0 Mon Sep 17 00:00:00 2001 From: Panchajanya1999 Date: Wed, 27 Oct 2021 20:58:54 +0530 Subject: [PATCH] binder: Avoid page memory allocation in high memory In binder, using GFP_HIGHMEM will result in the allocated memory not to be mapped in the kernel's virtual address space. This prevents the kernel from being capable of directly referring it. Change-Id: I952dbc8ae205e47fa00ddf186ef306903f623367 Signed-off-by: Panchajanya1999 Signed-off-by: Forenche Signed-off-by: Cyber Knight Signed-off-by: Pranav Vashi Signed-off-by: Sorayukii --- drivers/android/binder_alloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c index b553b10d0e2e..abb13bcb50b5 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c @@ -262,7 +262,6 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate, trace_binder_alloc_page_start(alloc, index); page->page_ptr = alloc_page(GFP_KERNEL | - __GFP_HIGHMEM | __GFP_ZERO); if (!page->page_ptr) { pr_err("%d: binder_alloc_buf failed for page at %pK\n",