Message ID | 1368152307-598-2-git-send-email-julien.grall@linaro.org |
---|---|
State | Accepted, archived |
Headers | show
Return-Path: <patchwork-forward+bncBCI3N6FH3YJRBDVSWGGAKGQE66TRHLA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6FBB6238F7 for <linaro@patches.linaro.org>; Fri, 10 May 2013 02:19:19 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id b10sf4689345qen.9 for <linaro@patches.linaro.org>; Thu, 09 May 2013 19:18:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=e+0R9n3tI+47kvrRDFYqi1VkUTVTgvue05EJWijU7M0=; b=jrLmI7RkulFuGhTWqDSzIcURMXm/p6iTVw7aGOZutLsIR0wu0JfCsqEIz0SkdVAdWE OSx3GX68L6vYLTVrVu/jXcqhjpkJ9I/sujftUYZSizu12z+mKH56BTS6ReKvlPR+2n86 PQyhyHTjDCLBRI/gj44Jf+6MWG6GwmlsftPMM3w1ez2EKb/UitqGsh3LqCRkxm3SXnlF 9Iaoc58w0rIoiFWF7B3G+UwjkRcSv1W/YB4aZliAMx0j6ZPR2z1xpGmn/nTWIL1G6V/z LaLU0uU7RgwSjxlDwFxxiW/QWS8u1bp67A/GOPmbMHxiMeZSLmXidj2xnKDYZPqHVBTZ xxOQ== X-Received: by 10.224.217.195 with SMTP id hn3mr11080550qab.5.1368152334659; Thu, 09 May 2013 19:18:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.120.33 with SMTP id kz1ls1716083qeb.15.gmail; Thu, 09 May 2013 19:18:54 -0700 (PDT) X-Received: by 10.52.94.227 with SMTP id df3mr8313641vdb.48.1368152334084; Thu, 09 May 2013 19:18:54 -0700 (PDT) Received: from mail-vb0-x22e.google.com (mail-vb0-x22e.google.com [2607:f8b0:400c:c02::22e]) by mx.google.com with ESMTPS id y14si355880vcn.9.2013.05.09.19.18.54 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:18:54 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22e is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22e; Received: by mail-vb0-f46.google.com with SMTP id 10so3051174vbe.19 for <patchwork-forward@linaro.org>; Thu, 09 May 2013 19:18:54 -0700 (PDT) X-Received: by 10.52.69.109 with SMTP id d13mr8324795vdu.75.1368152333923; Thu, 09 May 2013 19:18:53 -0700 (PDT) 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.217.15 with SMTP id hk15csp36192vcb; Thu, 9 May 2013 19:18:53 -0700 (PDT) X-Received: by 10.194.119.202 with SMTP id kw10mr21396406wjb.26.1368152332565; Thu, 09 May 2013 19:18:52 -0700 (PDT) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [2a00:1450:400c:c05::235]) by mx.google.com with ESMTPS id go9si179676wib.46.2013.05.09.19.18.52 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:18:52 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::235 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c05::235; Received: by mail-wi0-f181.google.com with SMTP id ey16so155088wid.8 for <patches@linaro.org>; Thu, 09 May 2013 19:18:52 -0700 (PDT) X-Received: by 10.180.91.131 with SMTP id ce3mr748617wib.5.1368152332046; Thu, 09 May 2013 19:18:52 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id dj7sm597075wib.6.2013.05.09.19.18.50 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:18:51 -0700 (PDT) From: Julien Grall <julien.grall@linaro.org> To: xen-devel@lists.xen.org Cc: Stefano.Stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, Julien Grall <julien.grall@linaro.org> Subject: [PATCH V3 01/41] xen/arm: lr must be included in range [0-nr_lr( Date: Fri, 10 May 2013 03:17:47 +0100 Message-Id: <1368152307-598-2-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1368152307-598-1-git-send-email-julien.grall@linaro.org> References: <1368152307-598-1-git-send-email-julien.grall@linaro.org> X-Gm-Message-State: ALoCoQnFmpjI+wDK1r0EOr3Q45p9Emc0Lha5Fr2bg1mCTRvk/YmChe4+o1Z/OTeNDVgPPiRO+z6v X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22e 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post?hl=en-US>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?hl=en-US&topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/?hl=en-US> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe?hl=en-US>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index feb7b29..eeb526e 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -512,7 +512,9 @@ static inline void gic_set_lr(int lr, unsigned int virtual_irq, { int maintenance_int = GICH_LR_MAINTENANCE_IRQ; - BUG_ON(lr > nr_lrs); + BUG_ON(lr >= nr_lrs); + BUG_ON(lr < 0); + BUG_ON(state & ~(GICH_LR_STATE_MASK<<GICH_LR_STATE_SHIFT)); GICH[GICH_LR + lr] = state | maintenance_int |