]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 3 Oct 2011 16:21:00 +0000 (12:21 -0400)
commita269db20c509958474710486d647b982af7555ff
tree631861f317d7a03eb1dc8b9db3f8ca8fc7cfdd7f
parentdec29021b7e4290eef4305856255eb1c31d76c3c
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