mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> [v1: Use BUG_ON instead of BUG] Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
This commit is contained in:
parent
a102a9ece5
commit
9d093e2958
1 changed files with 1 additions and 0 deletions
|
|
@ -1670,6 +1670,7 @@ void __init xen_init_IRQ(void)
|
|||
|
||||
evtchn_to_irq = kcalloc(NR_EVENT_CHANNELS, sizeof(*evtchn_to_irq),
|
||||
GFP_KERNEL);
|
||||
BUG_ON(!evtchn_to_irq);
|
||||
for (i = 0; i < NR_EVENT_CHANNELS; i++)
|
||||
evtchn_to_irq[i] = -1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue