From: Boris Ostrovsky Date: Wed, 29 Apr 2015 21:10:15 +0000 (-0400) Subject: xen/events: Set irq_info->evtchn before binding the channel to CPU in __startup_pirq() X-Git-Tag: v3.4.109~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95f92efede0bece7fa9eaaf4329e5445eb927739;p=thirdparty%2Fkernel%2Fstable.git xen/events: Set irq_info->evtchn before binding the channel to CPU in __startup_pirq() commit 16e6bd5970c88a2ac018b84a5f1dd5c2ff1fdf2c upstream. .. because bind_evtchn_to_cpu(evtchn, cpu) will map evtchn to 'info' and pass 'info' down to xen_evtchn_port_bind_to_cpu(). Signed-off-by: Boris Ostrovsky Tested-by: Annie Li Signed-off-by: David Vrabel [lizf: Backported to 3.4: adjust filename and context] Signed-off-by: Zefan Li --- diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 9161f06564eba..fdf842c83a7ab 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c @@ -563,8 +563,8 @@ static unsigned int __startup_pirq(unsigned int irq) pirq_query_unmask(irq); evtchn_to_irq[evtchn] = irq; - bind_evtchn_to_cpu(evtchn, 0); info->evtchn = evtchn; + bind_evtchn_to_cpu(evtchn, 0); out: unmask_evtchn(evtchn);