projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
260a7d4
)
xen: events: do not leak IRQ from xen_allocate_pirq_msi when no pirq available.
author
Ian Campbell
<ian.campbell@citrix.com>
Fri, 18 Feb 2011 16:43:27 +0000
(16:43 +0000)
committer
Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com>
Thu, 10 Mar 2011 19:44:34 +0000
(14:44 -0500)
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: xen-devel@lists.xensource.com
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/xen/events.c
b/drivers/xen/events.c
index 89987a7bf26fe57527370e2227ad09adc9c50594..bce303590075025c0793036fbec2dfc8290b1821 100644
(file)
--- a/
drivers/xen/events.c
+++ b/
drivers/xen/events.c
@@
-676,8
+676,11
@@
void xen_allocate_pirq_msi(char *name, int *irq, int *pirq, int alloc)
if (alloc & XEN_ALLOC_PIRQ) {
*pirq = find_unbound_pirq(MAP_PIRQ_TYPE_MSI);
- if (*pirq == -1)
+ if (*pirq == -1) {
+ xen_free_irq(*irq);
+ *irq = -1;
goto out;
+ }
}
set_irq_chip_and_handler_name(*irq, &xen_pirq_chip,