xen: explicitly initialise the cpu field of irq_info
authorIan Campbell <Ian.Campbell@eu.citrix.com>
Sat, 7 Feb 2009 00:55:58 +0000 (16:55 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 11:18:22 +0000 (12:18 +0100)
commit90af9514ac99f51e81682c7bec8f9fb88a17a95c
tree479e22492c5821e4386f1a258fa6ea92cde05ad4
parent3445a8fd7c6868bd9db0d1bea7d6e89004552122
xen: explicitly initialise the cpu field of irq_info

I was seeing a very odd crash on 64 bit in bind_evtchn_to_cpu because
cpu_from_irq(irq) was coming out as -1. I found this was coming direct
from the mk_ipi_info call.

It's not clear to me that this isn't a compiler bug (implicit
initialisation to zero of unsigned shorts in a struct not handled
correctly?).

On the other hand is it true that all event channels start of bound to
CPU 0? If not then -1 might be correct and the various other functions
should cope with this.

Signed-off-by: Ian Campbell <Ian.Campbell@eu.citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/xen/events.c