From 81e092854748fdb744cf06e249d1dbc9b660fff2 Mon Sep 17 00:00:00 2001 From: Kalesh Singh Date: Fri, 3 Nov 2023 13:25:50 -0700 Subject: [PATCH] ANDROID: 16K: __PAGE_ALIGN mmap hint address In page-compat mode align mmap hint to the emulated page size. Bug: 383389337 Bug: 315325080 Bug: 302403436 Change-Id: I129b34aaa013e1c548d20a97b8452e50ce8426c9 Signed-off-by: Kalesh Singh --- mm/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index 95985998e1c0..429e2050fa70 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -225,10 +225,10 @@ out: */ static inline unsigned long round_hint_to_min(unsigned long hint) { - hint &= PAGE_MASK; + hint &= __PAGE_MASK; if (((void *)hint != NULL) && (hint < mmap_min_addr)) - return PAGE_ALIGN(mmap_min_addr); + return __PAGE_ALIGN(mmap_min_addr); return hint; }