mm/page_alloc: add a VM_BUG in __free_one_page() if the zone is uninitialized.
[deliverable/linux.git] / mm / page_alloc.c
index a3687afc5917cd84b842f450b7cf400ffd57d4b4..9614aabee8c5bb20af749eebb68c9f61f8e027be 100644 (file)
@@ -538,6 +538,8 @@ static inline void __free_one_page(struct page *page,
        unsigned long uninitialized_var(buddy_idx);
        struct page *buddy;
 
+       VM_BUG_ON(!zone_is_initialized(zone));
+
        if (unlikely(PageCompound(page)))
                if (unlikely(destroy_compound_page(page, order)))
                        return;
This page took 0.02461 seconds and 5 git commands to generate.