diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-02-26 17:19:58 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-02-26 17:19:58 +0000 |
commit | fce0a826083e0416981e2ea9518ce5faa75b81a3 (patch) | |
tree | 3b17288949ac325becf7885f0852f278dfe636e7 /hw/intc/exynos4210_combiner.c | |
parent | 775fda92a1b52c784cd51c095d67fcca7250e1e5 (diff) | |
download | qemu-fce0a826083e0416981e2ea9518ce5faa75b81a3.tar.gz qemu-fce0a826083e0416981e2ea9518ce5faa75b81a3.tar.bz2 qemu-fce0a826083e0416981e2ea9518ce5faa75b81a3.zip |
hw/intc/exynos4210_combiner: Don't overrun output_irq array in init
The Exynos4210 combiner has IIC_NIRQ inputs and IIC_NGRP outputs;
use the correct constant in the loop initializing our output
sysbus IRQs so that we don't overrun the output_irq[] array.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1392659611-8439-1-git-send-email-peter.maydell@linaro.org
Reviewed-by: Andreas Färber <afaerber@suse.de>
Cc: qemu-stable@nongnu.org
Diffstat (limited to 'hw/intc/exynos4210_combiner.c')
-rw-r--r-- | hw/intc/exynos4210_combiner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/exynos4210_combiner.c b/hw/intc/exynos4210_combiner.c index ef5e8eb22f..3287479456 100644 --- a/hw/intc/exynos4210_combiner.c +++ b/hw/intc/exynos4210_combiner.c @@ -418,7 +418,7 @@ static int exynos4210_combiner_init(SysBusDevice *sbd) qdev_init_gpio_in(dev, exynos4210_combiner_handler, IIC_NIRQ); /* Connect SysBusDev irqs to device specific irqs */ - for (i = 0; i < IIC_NIRQ; i++) { + for (i = 0; i < IIC_NGRP; i++) { sysbus_init_irq(sbd, &s->output_irq[i]); } |