Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320860
b: refs/heads/master
c: 5b760e6
h: refs/heads/master
v: v3
  • Loading branch information
Gavin Shan authored and Linus Torvalds committed Aug 1, 2012
1 parent df02c3c commit b683230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b214514592d2dcb0b9d14ee8dd14f3699e3b0a84
refs/heads/master: 5b760e64a64c8940cdccd0ba6fce19a9bd010d20
10 changes: 4 additions & 6 deletions trunk/mm/sparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,12 @@ static struct mem_section noinline __init_refok *sparse_index_alloc(int nid)

if (slab_is_available()) {
if (node_state(nid, N_HIGH_MEMORY))
section = kmalloc_node(array_size, GFP_KERNEL, nid);
section = kzalloc_node(array_size, GFP_KERNEL, nid);
else
section = kmalloc(array_size, GFP_KERNEL);
} else
section = kzalloc(array_size, GFP_KERNEL);
} else {
section = alloc_bootmem_node(NODE_DATA(nid), array_size);

if (section)
memset(section, 0, array_size);
}

return section;
}
Expand Down

0 comments on commit b683230

Please sign in to comment.