lkml.org 
[lkml]   [2007]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET != 0
    Date
    When using FLAT_MEMORY and ARCH_PFN_OFFSET is not 0, the kernel
    crashes in memmap_init_zone(). This bug got introduced by
    commit c713216deebd95d2b0ab38fef8bb2361c0180c2d

    Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
    ---

    mm/page_alloc.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/mm/page_alloc.c b/mm/page_alloc.c
    index b5a58d4..496f7f3 100644
    --- a/mm/page_alloc.c
    +++ b/mm/page_alloc.c
    @@ -3427,7 +3427,7 @@ static void __init_refok alloc_node_mem_map(struct pglist_data *pgdat)
    mem_map = NODE_DATA(0)->node_mem_map;
    #ifdef CONFIG_ARCH_POPULATES_NODE_MAP
    if (page_to_pfn(mem_map) != pgdat->node_start_pfn)
    - mem_map -= pgdat->node_start_pfn;
    + mem_map -= (pgdat->node_start_pfn - ARCH_PFN_OFFSET);
    #endif /* CONFIG_ARCH_POPULATES_NODE_MAP */
    }
    #endif

    \
     
     \ /
      Last update: 2007-12-18 17:13    [W:0.019 / U:2.488 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site