Message ID | 1425400576-14771-1-git-send-email-julien.grall@linaro.org |
---|---|
State | Accepted |
Commit | 3508bd4d7648501cbfb879585341e6a80f71581c |
Headers | show
Return-Path: <patchwork-forward+bncBCI3N6FH3YJRBEWH26TQKGQEXH3OK2A@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5C2FA21416 for <linaro@patches.linaro.org>; Tue, 3 Mar 2015 16:38:43 +0000 (UTC) Received: by labmn12 with SMTP id mn12sf1919515lab.2 for <linaro@patches.linaro.org>; Tue, 03 Mar 2015 08:38:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-post:list-help :list-subscribe:mime-version:content-type:content-transfer-encoding :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=5RauznFZVelmfiWmOGy5cK0feJ9qoDDS698RWFxbiPw=; b=bXugAMoCoPtULlzOYHutZ3/8pbwFdw0IfXuYwgtW23LQdkQfjxEMPhHoE620+XShqb tfyUtWPPf1lMrZJ80YOI++qA2EDKqoMuxTnob8l6GaP+d72DO0I1mn7robKjCZuupsBl cYG+na5ZwVSjgIAKIfZSEK3oMojkxizZ8TA4cwAlSaKsN9YeEg+QZxc8k6rjg62CPf2i wahytG2/gtcaV6s7r7jk4/lCYSZ/yLjrAZ/uwTmfb142Vs8Y7PvyvKsRoOU3U4sH2iO7 d1lKLlmePWGWu6P/nkdjF8bUEhqe+S049p+Fns27+TO4IyqsMh5iFdAzjm5iDDLkNOV+ xcZQ== X-Gm-Message-State: ALoCoQnpeOGfq3MwHd5YtjkPgmKKLv9Ub1NWECGpv9scHsgSDGkeepuphayQ0zMT0mNZelL3i/rB X-Received: by 10.180.8.67 with SMTP id p3mr3121733wia.7.1425400722276; Tue, 03 Mar 2015 08:38:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.225.132 with SMTP id rk4ls69241lac.79.gmail; Tue, 03 Mar 2015 08:38:42 -0800 (PST) X-Received: by 10.112.73.65 with SMTP id j1mr29512345lbv.87.1425400722034; Tue, 03 Mar 2015 08:38:42 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id mz5si773326lbb.168.2015.03.03.08.38.42 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 08:38:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lamq1 with SMTP id q1so15488435lam.0 for <patchwork-forward@linaro.org>; Tue, 03 Mar 2015 08:38:42 -0800 (PST) X-Received: by 10.112.204.197 with SMTP id la5mr29451027lbc.29.1425400721953; Tue, 03 Mar 2015 08:38:41 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp679756lbj; Tue, 3 Mar 2015 08:38:41 -0800 (PST) X-Received: by 10.140.96.139 with SMTP id k11mr57429838qge.102.1425400718997; Tue, 03 Mar 2015 08:38:38 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id f6si967985qga.113.2015.03.03.08.38.38 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 03 Mar 2015 08:38:38 -0800 (PST) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1YSpoO-0003Sc-By; Tue, 03 Mar 2015 16:36:48 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from <julien.grall@linaro.org>) id 1YSpoN-0003SR-3r for xen-devel@lists.xenproject.org; Tue, 03 Mar 2015 16:36:47 +0000 Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id 2F/E6-02601-E13E5F45; Tue, 03 Mar 2015 16:36:46 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-4.tower-27.messagelabs.com!1425400605!14375037!1 X-Originating-IP: [74.125.82.172] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.13.4; banners=-,-,- X-VirusChecked: Checked Received: (qmail 31518 invoked from network); 3 Mar 2015 16:36:45 -0000 Received: from mail-we0-f172.google.com (HELO mail-we0-f172.google.com) (74.125.82.172) by server-4.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 3 Mar 2015 16:36:45 -0000 Received: by wevl61 with SMTP id l61so41040798wev.2 for <xen-devel@lists.xenproject.org>; Tue, 03 Mar 2015 08:36:45 -0800 (PST) X-Received: by 10.194.236.200 with SMTP id uw8mr69249085wjc.10.1425400605594; Tue, 03 Mar 2015 08:36:45 -0800 (PST) Received: from chilopoda.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id bo1sm2020613wjb.15.2015.03.03.08.36.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Mar 2015 08:36:44 -0800 (PST) From: Julien Grall <julien.grall@linaro.org> To: xen-devel@lists.xenproject.org Date: Tue, 3 Mar 2015 16:36:16 +0000 Message-Id: <1425400576-14771-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 2.1.4 Cc: stefano.stabellini@citrix.com, Julien Grall <julien.grall@linaro.org>, tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH] xen/arm: gic: Correctly check if an IRQ is valid in gic_interrupt X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> |
diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index 390c8b0..940fb8e 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -570,7 +570,7 @@ void gic_interrupt(struct cpu_user_regs *regs, int is_fiq) /* Reading IRQ will ACK it */ irq = gic_hw_ops->read_irq(); - if ( likely(irq >= 16 && irq < 1021) ) + if ( likely(irq >= 16 && irq < 1020) ) { local_irq_enable(); do_IRQ(regs, irq, is_fiq);
The IRQ 1020 is reserved for special purpose, so the check should be "irq < 1020" rather than "irq < 1021". Signed-off-by: Julien Grall <julien.grall@linaro.org> --- xen/arch/arm/gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)