aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/lguest')
-rw-r--r--drivers/lguest/core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c
index 1e2cb846b3c9..8744d24ac6e6 100644
--- a/drivers/lguest/core.c
+++ b/drivers/lguest/core.c
@@ -67,12 +67,11 @@ static __init int map_switcher(void)
67 * so we make sure they're zeroed. 67 * so we make sure they're zeroed.
68 */ 68 */
69 for (i = 0; i < TOTAL_SWITCHER_PAGES; i++) { 69 for (i = 0; i < TOTAL_SWITCHER_PAGES; i++) {
70 unsigned long addr = get_zeroed_page(GFP_KERNEL); 70 switcher_page[i] = alloc_page(GFP_KERNEL|__GFP_ZERO);
71 if (!addr) { 71 if (!switcher_page[i]) {
72 err = -ENOMEM; 72 err = -ENOMEM;
73 goto free_some_pages; 73 goto free_some_pages;
74 } 74 }
75 switcher_page[i] = virt_to_page(addr);
76 } 75 }
77 76
78 /* 77 /*