From: Ian Campbell Subject: Re: [PATCH for-4.5 2/8] xen/arm: setup_dt_irq: don't enable the IRQ if the creation has failed Date: Wed, 19 Feb 2014 11:24:05 +0000 Message-ID: <1392809045.23084.140.camel@kazak.uk.xensource.com> References: <1390581822-32624-1-git-send-email-julien.grall@linaro.org> <1390581822-32624-3-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WG5G6-0004Pi-7c for xen-devel@lists.xenproject.org; Wed, 19 Feb 2014 11:24:10 +0000 In-Reply-To: <1390581822-32624-3-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, patches@linaro.org, stefano.stabellini@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-01-24 at 16:43 +0000, Julien Grall wrote: > For now __setup_dt_irq can only fail if the action is already set. If in the > future, the function is updated we don't want to enable the IRQ. > > Assuming the function can fail with action = NULL, when Xen will receive the > IRQ it will segfault because do_IRQ doesn't check if action is NULL. > > Signed-off-by: Julien Grall Acked-by: Ian Campbell