Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164914
b: refs/heads/master
c: 6c189d8
h: refs/heads/master
v: v3
  • Loading branch information
Xiao Guangrong authored and Rusty Russell committed Sep 23, 2009
1 parent 922626a commit c023683
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: fb100d78c04ff6053047625d0368d0d4b1d9912a
refs/heads/master: 6c189d8312246af776c2587c233d6afcf3714438
5 changes: 2 additions & 3 deletions trunk/drivers/lguest/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,11 @@ static __init int map_switcher(void)
* so we make sure they're zeroed.
*/
for (i = 0; i < TOTAL_SWITCHER_PAGES; i++) {
unsigned long addr = get_zeroed_page(GFP_KERNEL);
if (!addr) {
switcher_page[i] = alloc_page(GFP_KERNEL|__GFP_ZERO);
if (!switcher_page[i]) {
err = -ENOMEM;
goto free_some_pages;
}
switcher_page[i] = virt_to_page(addr);
}

/*
Expand Down

0 comments on commit c023683

Please sign in to comment.