Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp232635yba; Fri, 5 Apr 2019 05:44:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxX+GCjRTHEZfqsG/ztWRgHoM/Pveq5GFH/LLA8qzKZP8V9DGqNuVQTkFjzxq9CCqoWyLvW X-Received: by 2002:a63:fd49:: with SMTP id m9mr11976111pgj.16.1554468286414; Fri, 05 Apr 2019 05:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554468286; cv=none; d=google.com; s=arc-20160816; b=MH4pbSWKARNpdchYTW0b3q5NZBVlIGTXp4QGXDxkqZ8n7rrPWjiEFQD2AJHdkrLib0 U9hJ6mrH6KxdF7qIJxBajQNKnTKkIia5qeDOAPfoVaPCYjNaEG/tm6movEf9SVqD1Q6p T5Lxo5O09f5+pdaPThiJURPKNsDoWlNIYnahn8r5OyBASWjoKIdKzWoKUTV6Oz5oAKh8 33RAMI9gpPv6pGuE6FEyqnuhMBkxIR+yRqN8LZRmwJcfR/T8CXXSBS+AA3/PuwxXL+m5 VHFXK+JfdLcUyim3jwLB1oRW4itKH8lnjxMlvbkO47ovBimw1PWMT+CgumeNU6U1WUGl qwAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=DjJyem9isyFjGa5QdHr/HIR9gfd0rY14e9pju3j3w5E=; b=UwfZJJ2E6Tzvdw3RRg24jMJFsNzzg2CygyFgY0EizTMQEWPio1rMH3ErUgEDFWxTxn f7YhIg2Sj4ikp6Kq23rHxoWiN08MzRxiZy3aIw+/C7R5QHsEzCTiO/jVFjoaekSs8/Up TcUeIn/XvqRj7nx7cQEiHCUzK8N7L/uAinr1dVjuTmcNGcOZbgtguFVLlh1e3kVlfzSn 0xnRFYH4OW01hOTFDQROfhz17ZxATi9R+8nnvxLwq+AMwX+8QPN0s4f0A6fUIXegJnyO rWoeKrmweqt1OTDdgX3hjEwDwrCd9IjRsWVJzIBkEErZ8HDv6PR57E3q8cSMaQMgseHg N/pQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si18405355pgp.17.2019.04.05.05.44.31; Fri, 05 Apr 2019 05:44:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730886AbfDEMnj (ORCPT + 99 others); Fri, 5 Apr 2019 08:43:39 -0400 Received: from terminus.zytor.com ([198.137.202.136]:56075 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726643AbfDEMni (ORCPT ); Fri, 5 Apr 2019 08:43:38 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x35ChBCP2753902 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 5 Apr 2019 05:43:11 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x35ChBJA2753899; Fri, 5 Apr 2019 05:43:11 -0700 Date: Fri, 5 Apr 2019 05:43:11 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Dan Carpenter Message-ID: Cc: tglx@linutronix.de, mojha@codeaurora.org, jason@lakedaemon.net, marc.zyngier@arm.com, dan.carpenter@oracle.com, hpa@zytor.com, mingo@kernel.org, jiaxun.yang@flygoat.com, linux-kernel@vger.kernel.org Reply-To: jiaxun.yang@flygoat.com, linux-kernel@vger.kernel.org, mojha@codeaurora.org, jason@lakedaemon.net, marc.zyngier@arm.com, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, dan.carpenter@oracle.com In-Reply-To: <20190329062136.GQ32613@kadam> References: <20190329062136.GQ32613@kadam> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/urgent] irqchip/irq-ls1x: Missing error code in ls1x_intc_of_init() Git-Commit-ID: 95c5c618fa4349b2ba13aebeabf71911208dfc5e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 95c5c618fa4349b2ba13aebeabf71911208dfc5e Gitweb: https://git.kernel.org/tip/95c5c618fa4349b2ba13aebeabf71911208dfc5e Author: Dan Carpenter AuthorDate: Fri, 29 Mar 2019 09:21:37 +0300 Committer: Thomas Gleixner CommitDate: Fri, 5 Apr 2019 14:37:56 +0200 irqchip/irq-ls1x: Missing error code in ls1x_intc_of_init() Currently, when irq_domain_add_linear() fails, the error code does not get set so it returns zero which is wrong. Fix it by setting the appropriate error code. Fixes: 9e543e22e204 ("irqchip: Add driver for Loongson-1 interrupt controller") Signed-off-by: Dan Carpenter Signed-off-by: Thomas Gleixner Reviewed-by: Mukesh Ojha Cc: Marc Zyngier Cc: Jiaxun Yang Cc: Jason Cooper Cc: kernel-janitors@vger.kernel.org Link: https://lkml.kernel.org/r/20190329062136.GQ32613@kadam --- drivers/irqchip/irq-ls1x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-ls1x.c b/drivers/irqchip/irq-ls1x.c index 86b72fbd3b45..353111a10413 100644 --- a/drivers/irqchip/irq-ls1x.c +++ b/drivers/irqchip/irq-ls1x.c @@ -130,6 +130,7 @@ static int __init ls1x_intc_of_init(struct device_node *node, NULL); if (!priv->domain) { pr_err("ls1x-irq: cannot add IRQ domain\n"); + err = -ENOMEM; goto out_iounmap; }