diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index a3687afc5917..9614aabee8c5 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -538,6 +538,8 @@ static inline void __free_one_page(struct page *page, | |||
538 | unsigned long uninitialized_var(buddy_idx); | 538 | unsigned long uninitialized_var(buddy_idx); |
539 | struct page *buddy; | 539 | struct page *buddy; |
540 | 540 | ||
541 | VM_BUG_ON(!zone_is_initialized(zone)); | ||
542 | |||
541 | if (unlikely(PageCompound(page))) | 543 | if (unlikely(PageCompound(page))) |
542 | if (unlikely(destroy_compound_page(page, order))) | 544 | if (unlikely(destroy_compound_page(page, order))) |
543 | return; | 545 | return; |