xen: fix memory access violation bug when CONFIG_HAVE_SPARSE_IRQ is enabled
authorAlex Nixon <alex.nixon@citrix.com>
Wed, 20 Aug 2008 03:50:53 +0000 (20:50 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:52:58 +0000 (16:52 +0200)
commit2b46b37de73296018da02c2a421ac2a9cbccfa9f
tree58751acf11501ba9a755bae9ed689898e1f75291
parent9d6a4d0823b3b8e29156f5e698b5a68687afad32
xen: fix memory access violation bug when CONFIG_HAVE_SPARSE_IRQ is enabled

When sparse IRQs are enabled, it is not safe to assume an IRQ descriptor
exists for every possible IRQ.  This patch causes init_evtchn_cpu_bindings
to skip initialisation of IRQ descriptors which don't exist.

Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/xen/events.c