From patchwork Mon Feb 17 17:53:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 24786 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6C49B202B2 for ; Mon, 17 Feb 2014 17:53:35 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id at1sf25257546iec.9 for ; Mon, 17 Feb 2014 09:53:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=NRm47P5mltYyoFFTf7bKeOvhw4dY+MbhZZKdKpCNNmo=; b=TS+tuL2yY4FgQdhjtPPy97489reewhXhUN/KViPyZaoH3C81r0asYvUN7jyBNAWXQW NDPBxDLauY+eoh7WN+vrl53yJ+NiE+4C5v6/PC9VckGELxuqsKUzbDGiOqEhSH1rFFOC 29iHa02D1BUiSqoSj5QOX64+WeDcTbC/pmOyoIalA6VEF6f5gl7Vzs2oLt1yxjlkTTk/ vtJjPaXRApC+UzHLZqa6Ve6DNf19jr7acNlq6W0JOhuSkpowsselh7Dq5bIE1tGbbFgF pAqd0uODIeIcXalMk+EYvIsfvTWbbMDhaCTkXp6D197mayFlh1oJKWhH4wmA1dOplnrh fPUQ== X-Gm-Message-State: ALoCoQmG89AWbQgToY3B1QOQeGIPvO8JzA7edeXOxGAK7J5EOAcPeQ4Ng9nzki5RlgFsbiHcQhsi X-Received: by 10.50.47.6 with SMTP id z6mr9058213igm.4.1392659614601; Mon, 17 Feb 2014 09:53:34 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.49 with SMTP id v46ls962169qge.6.gmail; Mon, 17 Feb 2014 09:53:34 -0800 (PST) X-Received: by 10.52.189.33 with SMTP id gf1mr11812578vdc.26.1392659614510; Mon, 17 Feb 2014 09:53:34 -0800 (PST) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id y3si4628241vdo.84.2014.02.17.09.53.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 09:53:34 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id im17so11936852vcb.19 for ; Mon, 17 Feb 2014 09:53:34 -0800 (PST) X-Received: by 10.220.110.210 with SMTP id o18mr149984vcp.49.1392659614393; Mon, 17 Feb 2014 09:53:34 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp156861vcz; Mon, 17 Feb 2014 09:53:34 -0800 (PST) X-Received: by 10.180.11.233 with SMTP id t9mr14279398wib.1.1392659613531; Mon, 17 Feb 2014 09:53:33 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id p6si11743277wjx.11.2014.02.17.09.53.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 17 Feb 2014 09:53:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WFSNn-0002Ca-Gf; Mon, 17 Feb 2014 17:53:31 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Evgeny Voevodin , Maksim Kozlov , Igor Mitsyanko , Dmitry Solodkiy Subject: [PATCH] hw/intc/exynos4210_combiner: Don't overrun output_irq array in init Date: Mon, 17 Feb 2014 17:53:31 +0000 Message-Id: <1392659611-8439-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- hw/intc/exynos4210_combiner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/exynos4210_combiner.c b/hw/intc/exynos4210_combiner.c index ef5e8eb..3287479 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]); }