Prev: [ANNOUNCE] iproute2 2.6.35
Next: [PATCH 18/20] xenbus: Xen paravirtualised PCI hotplug support.
From: Konrad Rzeszutek Wilk on 4 Aug 2010 14:30 From: Jeremy Fitzhardinge <jeremy.fitzhardinge(a)citrix.com> Sometimes cpu_evtchn_mask_p can get used early, before it has been allocated. Statically initialize it with an initdata version to catch any early references. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge(a)citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk(a)oracle.com> --- drivers/xen/events.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 64cde24..35718db 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c @@ -99,7 +99,12 @@ static int *evtchn_to_irq; struct cpu_evtchn_s { unsigned long bits[NR_EVENT_CHANNELS/BITS_PER_LONG]; }; -static struct cpu_evtchn_s *cpu_evtchn_mask_p; + +static __initdata struct cpu_evtchn_s init_evtchn_mask = { + .bits[0 ... (NR_EVENT_CHANNELS/BITS_PER_LONG)-1] = ~0ul, +}; +static struct cpu_evtchn_s *cpu_evtchn_mask_p = &init_evtchn_mask; + static inline unsigned long *cpu_evtchn_mask(int cpu) { return cpu_evtchn_mask_p[cpu].bits; -- 1.7.0.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: [ANNOUNCE] iproute2 2.6.35 Next: [PATCH 18/20] xenbus: Xen paravirtualised PCI hotplug support. |