xen/events: BUG() when we can't allocate our event->irq array.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 29 Sep 2011 17:31:21 +0000 (13:31 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Oct 2011 21:03:25 +0000 (17:03 -0400)
commit9d093e2958baf76154d1008339f594f798a52790
tree3985f2342453fce2c0a49a67b87aff6e357c79e2
parenta102a9ece5489e1718cd7543aa079082450ac3a2
xen/events: BUG() when we can't allocate our event->irq array.

In case we can't allocate we are doomed. We should BUG_ON
instead of trying to dereference it later on.

Acked-by: Ian Campbell <ian.campbell@citrix.com>
[v1: Use BUG_ON instead of BUG]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c