X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=mm%2Fsparse.c;h=2583174b1d625692f8f4235b5353a2e1308f7e98;hp=06130c13dc99221ba421ff3483ba24346cc712b4;hb=ee95f4059a833839bf52972191b2d4c3d3cec552;hpb=d121f07691415df824e6b60520f782f6d13b3c81 diff --git a/mm/sparse.c b/mm/sparse.c index 06130c13dc99..2583174b1d62 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -211,7 +211,7 @@ void __init memory_present(int nid, unsigned long start, unsigned long end) if (unlikely(!mem_section)) { unsigned long size, align; - size = sizeof(struct mem_section) * NR_SECTION_ROOTS; + size = sizeof(struct mem_section*) * NR_SECTION_ROOTS; align = 1 << (INTERNODE_CACHE_SHIFT); mem_section = memblock_virt_alloc(size, align); }