Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2636162pxa; Mon, 17 Aug 2020 15:05:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx43FAAKAbKj0UOd1E3I3FMn+6hqYaDwtPpcBBW/nvhrLLDBHX3gOQ8BllIdf+/mKr7SZM3 X-Received: by 2002:a17:906:33d1:: with SMTP id w17mr18433734eja.68.1597701922732; Mon, 17 Aug 2020 15:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597701922; cv=none; d=google.com; s=arc-20160816; b=hV0eouQpr/H6W8WE5Qcm4e7xBCgexMZzobQqUH515ba/+TqN5bE+X8FYC5hazqFKMM XM18VtmqjSwFARJQBgMXAe2kB0/N2Ux85iWOX4bVKIfVhsaA7OGc003CaK+Ys2GTf5c8 z45nOpr3lm1UXYd0g91OJj8iS7XFb1e81q1YG8WBAiOvHiTkZfSMtXeFTFTzVLjcPIv5 cy+YHr7xjzmGdxvSQLWEb0EFOP+jfogVyYAFhYZxTSeIg5mkrVSbfjGZmcxDOVq0PJbh V9gpSfO1eSODnPJ5us425Qq8UuaXaJ4m2xRjKZ+gMoiowHFym2hthXV3+lbjOR1Ev35N SPJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NUDIjldQePmcn9WwA8qKmkkdb5Z++4J+ZIQSdvIT9PI=; b=wPwlB4EutnBUwmlU7ulmEUTvZDwxxJ314xqq4VzpOs+BE6x/Bm/6v0LPAVgJrhyoVu D7ANUtcaWs8lsVVAjGeX0x1+upzzuyctAVt5wg9dEUX9+hbDHQZq3W9jcy4/VJ5ATZLH RBNBkJVG+fJ2tKig2oOjcnbrnlfQyYB84yPdYwPBJnuevIoQerswCrIL5Fy8eV4XiNwC ez5aHx6774/hrZE248XetiNQuTAdp4fpDH9jQLugSkJ20XaXCzJbLHrUoqrtxs2zm5l7 JFDGA9fiqgSQToO9Trch4Psn16nHxhN8bQ1pAuVoXU4xXNz3hYrfi70tSPW9p/uRk1cb 0fOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rqUass6Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lo3si12007991ejb.46.2020.08.17.15.04.58; Mon, 17 Aug 2020 15:05:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rqUass6Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387514AbgHQQAj (ORCPT + 99 others); Mon, 17 Aug 2020 12:00:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:53184 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387597AbgHQPmz (ORCPT ); Mon, 17 Aug 2020 11:42:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 457C320760; Mon, 17 Aug 2020 15:42:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597678974; bh=9SWCTvbJ98KOQ9GVIu50Cbq1XurQ6Ach9phYfuzlA6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rqUass6Z0CFzdZXBdY6m8T62yJabx9gcnYa/n9rMUvENWeqv9vTzbAA1EbdWC/wtB NFJmpmD4zqTsFaM6dfbAQTNSZJfijAtI5Eg4siqDOxZDwRIUOavEr41/9Q+ag96U9X H4kf67I5WmvoGuVsOivmT7TC7eVvEbOED2XjMkLc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tiezhu Yang , Marc Zyngier , Grygorii Strashko , Sasha Levin Subject: [PATCH 5.7 052/393] irqchip/ti-sci-inta: Fix return value about devm_ioremap_resource() Date: Mon, 17 Aug 2020 17:11:42 +0200 Message-Id: <20200817143822.138470267@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143819.579311991@linuxfoundation.org> References: <20200817143819.579311991@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tiezhu Yang [ Upstream commit 4b127a14cb1385dd355c7673d975258d5d668922 ] When call function devm_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 9f1463b86c13 ("irqchip/ti-sci-inta: Add support for Interrupt Aggregator driver") Signed-off-by: Tiezhu Yang Signed-off-by: Marc Zyngier Reviewed-by: Grygorii Strashko Link: https://lore.kernel.org/r/1591437017-5295-2-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Sasha Levin --- drivers/irqchip/irq-ti-sci-inta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-ti-sci-inta.c b/drivers/irqchip/irq-ti-sci-inta.c index 7e3ebf6ed2cd1..be0a35d917962 100644 --- a/drivers/irqchip/irq-ti-sci-inta.c +++ b/drivers/irqchip/irq-ti-sci-inta.c @@ -572,7 +572,7 @@ static int ti_sci_inta_irq_domain_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); inta->base = devm_ioremap_resource(dev, res); if (IS_ERR(inta->base)) - return -ENODEV; + return PTR_ERR(inta->base); domain = irq_domain_add_linear(dev_of_node(dev), ti_sci_get_num_resources(inta->vint), -- 2.25.1