]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
xen/events: Set irq_info->evtchn before binding the channel to CPU in __startup_pirq()
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 29 Apr 2015 21:10:15 +0000 (17:10 -0400)
committerLuis Henriques <luis.henriques@canonical.com>
Wed, 20 May 2015 12:26:07 +0000 (13:26 +0100)
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 <boris.ostrovsky@oracle.com>
Tested-by: Annie Li <annie.li@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/xen/events/events_base.c

index 04766f61fc9659ebdb010754b039a1f5d0e890e1..31ac2eec06e4fb1255934638ea42b09dbb60effe 100644 (file)
@@ -529,8 +529,8 @@ static unsigned int __startup_pirq(unsigned int irq)
        if (rc)
                goto err;
 
-       bind_evtchn_to_cpu(evtchn, 0);
        info->evtchn = evtchn;
+       bind_evtchn_to_cpu(evtchn, 0);
 
        rc = xen_evtchn_port_setup(info);
        if (rc)