projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a102a9e
)
xen/events: BUG() when we can't allocate our event->irq array.
author
Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com>
Thu, 29 Sep 2011 17:31:21 +0000
(13:31 -0400)
committer
Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com>
Wed, 19 Oct 2011 21:03:25 +0000
(17:03 -0400)
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
patch
|
blob
|
history
diff --git
a/drivers/xen/events.c
b/drivers/xen/events.c
index
7523719
..
6b002cc
100644
(file)
--- a/
drivers/xen/events.c
+++ b/
drivers/xen/events.c
@@
-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;