mm/page_alloc: fix and rework pfn handling in memmap_init_zone()
[linux-block.git] / mm / sparse.c
index 3822ecbd8a1f644e6e9e1d7b27655e5e5ae00ebe..3918fc3eaef1fe029c678032f25cf0c5642f3c1d 100644 (file)
@@ -789,7 +789,7 @@ static void section_deactivate(unsigned long pfn, unsigned long nr_pages,
                        ms->usage = NULL;
                }
                memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr);
-               ms->section_mem_map = sparse_encode_mem_map(NULL, section_nr);
+               ms->section_mem_map = (unsigned long)NULL;
        }
 
        if (section_is_early && memmap)