author: Xiongwei Song <sxwjean@gmail.com> 2022-01-14 14:07:24 -0800
committer: Mason Huo <mason.huo@starfivetech.com> 2023-07-10 15:16:48 +0800
commit: 3c8bd2aa61742a772e00a9cbd8b570d7adc668b7
parent: 96a12e3b92941d8e6b8015679162e8fef03ab0f2
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 23d3339ac4e8..6525c15fe67d 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -8160,7 +8160,7 @@ void __init mem_init_print_info(void)
*/
#define adj_init_size(start, end, size, pos, adj) \
do { \
- if (start <= pos && pos < end && size > adj) \
+ if (&start[0] <= &pos[0] && &pos[0] < &end[0] && size > adj) \
size -= adj; \
} while (0)