Skip to content

Commit 16e6bd5

Browse files
Boris OstrovskyDavid Vrabel
authored andcommitted
xen/events: Set irq_info->evtchn before binding the channel to CPU in __startup_pirq()
.. 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> Cc: <stable@vger.kernel.org> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
1 parent b9d934f commit 16e6bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/xen/events/events_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ static unsigned int __startup_pirq(unsigned int irq)
529529
if (rc)
530530
goto err;
531531

532-
bind_evtchn_to_cpu(evtchn, 0);
533532
info->evtchn = evtchn;
533+
bind_evtchn_to_cpu(evtchn, 0);
534534

535535
rc = xen_evtchn_port_setup(info);
536536
if (rc)

0 commit comments

Comments
 (0)