]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/mips/sgi-ip27/ip27-memory.c
mips: zero out pg_data_t when it's allocated
[karo-tx-linux.git] / arch / mips / sgi-ip27 / ip27-memory.c
index b105eca3c02042d2e9319bffce8b7dee68ad6b4c..cd8fcab6b054e7f6c7293b5c10cd503fc85aab45 100644 (file)
@@ -401,6 +401,7 @@ static void __init node_mem_init(cnodeid_t node)
         * Allocate the node data structures on the node first.
         */
        __node_data[node] = __va(slot_freepfn << PAGE_SHIFT);
+       memset(__node_data[node], 0, PAGE_SIZE);
 
        NODE_DATA(node)->bdata = &bootmem_node_data[node];
        NODE_DATA(node)->node_start_pfn = start_pfn;