|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 02/12] xen: events: do not leak IRQ from xen_allocate
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
---
drivers/xen/events.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index c536157..41a8a65 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -666,8 +666,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,
--
1.5.6.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] [PATCH 2/3] xen-pcifront: Sanity check the MSI/MSI-X values, (continued)
- Re: [Xen-devel] [PATCH 1/3] pci/xen: Use xen_allocate_pirq_msi, Konrad Rzeszutek Wilk
- [PATCH 0/12] xen: MSI managment cleanups (Was: Re: [Xen-devel] [PATCH 1/3] pci/xen: Use xen_allocate_pirq_msi), Ian Campbell
- [Xen-devel] [PATCH 01/12] xen: pci: only define xen_initdom_setup_msi_irqs if CONFIG_XEN_DOM0, Ian Campbell
- [Xen-devel] [PATCH 02/12] xen: events: do not leak IRQ from xen_allocate_pirq_msi when no pirq available.,
Ian Campbell <=
- [Xen-devel] Re: [PATCH 02/12] xen: events: do not leak IRQ from xen_allocate_pirq_msi when no pirq available., Stefano Stabellini
- [Xen-devel] Re: [PATCH 02/12] xen: events: do not leak IRQ from xen_allocate_pirq_msi when no pirq available., Ian Campbell
- [Xen-devel] [PATCH 03/12] xen: events: drop XEN_ALLOC_IRQ flag to xen_allocate_pirq_msi, Ian Campbell
- [Xen-devel] [PATCH 04/12] xen: events: return irq from xen_allocate_pirq_msi, Ian Campbell
- [Xen-devel] [PATCH 05/12] xen: pci: collapse apic_register_gsi_xen_hvm and xen_hvm_register_pirq, Ian Campbell
- [Xen-devel] [PATCH 06/12] xen: events: assume PHYSDEVOP_get_free_pirq exists, Ian Campbell
- [Xen-devel] [PATCH 07/12] xen: events: separate MSI PIRQ allocation from PIRQ binding to IRQ, Ian Campbell
- [Xen-devel] Re: [PATCH 07/12] xen: events: separate MSI PIRQ allocation from PIRQ binding to IRQ, Stefano Stabellini
- [Xen-devel] Re: [PATCH 07/12] xen: events: separate MSI PIRQ allocation from PIRQ binding to IRQ, Ian Campbell
- [Xen-devel] [PATCH 08/12] xen: events: refactor xen_create_msi_irq slightly, Ian Campbell
|
|
|
|
|