Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338735
b: refs/heads/master
c: 3ac19f8
h: refs/heads/master
i:
  338733: cf8d342
  338731: 705a3ae
  338727: 7fae89b
  338719: df1b992
v: v3
  • Loading branch information
Wen Congyang authored and Linus Torvalds committed Dec 12, 2012
1 parent 1eb143b commit fdc9d72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 8c7b5b4ed948d1ddf9672ee932a16750b280822a
refs/heads/master: 3ac19f8efe26451cacac31d0be34fa9c51114c2a
3 changes: 2 additions & 1 deletion trunk/mm/sparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ static struct page *__kmalloc_section_memmap(unsigned long nr_pages)
got_map_page:
ret = (struct page *)pfn_to_kaddr(page_to_pfn(page));
got_map_ptr:
memset(ret, 0, memmap_size);

return ret;
}
Expand Down Expand Up @@ -758,6 +757,8 @@ int __meminit sparse_add_one_section(struct zone *zone, unsigned long start_pfn,
goto out;
}

memset(memmap, 0, sizeof(struct page) * nr_pages);

ms->section_mem_map |= SECTION_MARKED_PRESENT;

ret = sparse_init_one_section(ms, section_nr, memmap, usemap);
Expand Down

0 comments on commit fdc9d72

Please sign in to comment.