]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/xen/events.c
xen: fix too early kmalloc call
[linux-2.6-omap-h63xx.git] / drivers / xen / events.c
index ed7527b3745a9486bfb6f282fd8ee76d6a08c7cc..3141e149d5950136f41edf5e12016849a39cbc50 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/irq.h>
 #include <linux/module.h>
 #include <linux/string.h>
+#include <linux/bootmem.h>
 
 #include <asm/ptrace.h>
 #include <asm/irq.h>
@@ -831,8 +832,8 @@ void __init xen_init_IRQ(void)
        int i;
        size_t size = nr_cpu_ids * sizeof(struct cpu_evtchn_s);
 
-       cpu_evtchn_mask_p = kmalloc(size, GFP_KERNEL);
-       BUG_ON(cpu_evtchn_mask == NULL);
+       cpu_evtchn_mask_p = alloc_bootmem(size);
+       BUG_ON(cpu_evtchn_mask_p == NULL);
 
        init_evtchn_cpu_bindings();