]> Zhao Yanbai Git Server - minix.git/commitdiff
ACPI extended irq - fixed uninitialized variable
authorTomas Hruby <tom@minix3.org>
Tue, 20 Dec 2011 08:01:21 +0000 (08:01 +0000)
committerTomas Hruby <tom@minix3.org>
Tue, 20 Dec 2011 13:08:45 +0000 (13:08 +0000)
drivers/acpi/pci.c

index d4ae056094656d4cedeec026108878d5789f18ab..fced2d8fdb483fc5104c78311f0d420a258f9b37 100644 (file)
@@ -157,6 +157,7 @@ PRIVATE ACPI_STATUS get_irq_resource(ACPI_RESOURCE *res, void *context)
        } else if (res->Type == ACPI_RESOURCE_TYPE_EXTENDED_IRQ) {
                ACPI_RESOURCE_EXTENDED_IRQ *irq;
 
+               irq = &res->Data.ExtendedIrq;
                add_irq(ires->bridge, ires->tbl->Address >> 16, ires->tbl->Pin,
                                irq->Interrupts[ires->tbl->SourceIndex]);
        }