aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index d58df9031503..bfbd95c0610f 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1401,6 +1401,9 @@ get_page_from_freelist(gfp_t gfp_mask, nodemask_t *nodemask, unsigned int order,
1401 1401
1402 classzone_idx = zone_idx(preferred_zone); 1402 classzone_idx = zone_idx(preferred_zone);
1403 1403
1404 if (WARN_ON_ONCE(order >= MAX_ORDER))
1405 return NULL;
1406
1404zonelist_scan: 1407zonelist_scan:
1405 /* 1408 /*
1406 * Scan zonelist, looking for a zone with enough free. 1409 * Scan zonelist, looking for a zone with enough free.