Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp29899pxk; Tue, 15 Sep 2020 16:52:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycX6g1SFTW51nguWKHmwVY6eaHGJQWu3qV/ajRio+D/lVfScmaBS15Er39xEoxvfgm0Z2R X-Received: by 2002:a17:906:850:: with SMTP id f16mr22560834ejd.447.1600213961169; Tue, 15 Sep 2020 16:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600213961; cv=none; d=google.com; s=arc-20160816; b=TWd3+hKNyB/4GUc4G2PExLJd13s5FRpIZWs5a8HhSFTi0cMiDFgOWVAUwtLuuE4Zvx 7374/Zjk7cVhA4rngeJPLrMPGdc/L+Cm6D3QCcHDUE2/w3DgqBneh3SMDge+rVgDyLfo /rxHzUQq9WPGcUnoehcHsUf3wDZLtiep9DyGgBwBDoOXUh7rL4Our0IMbsNcN+Fa5wyW iPQJpOxBOezmIdpK97KYGHurnY1FirQIgFc6HOrA0iyoTCaI74yj9CSd3Q2ZP9SuRIuS mLxCz0hL9XCiYYvmEh5XCLYE28Jq1FwpzNSpKmkjhNwbxl/SjjbGzadilpzfR3Yn5DMK EHmw== 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=AaIomapgkddoqAD7f8ngglYvomAj+DEu8+bFaZh7Pos=; b=g0bi9gu3wIlOYttntuM3hIj1ER951Utm/i0Hkjmv2v98TvXLuIw6td89+m7MHR/hRP jwaCXBCDwx+3byRdOgl6j1gaFM4hgyPFq9fBSd8O4/1A+ZyhVl8KLE0W86gq6pRzDQg4 4/2froefHf0ODZyCtXcLRytEuKsa9y8ZEW0lWz84XF160xmF+KQxTt6dOrzgc/00mQxQ XaflJOB0H3NfJoD+g7lwD9eg1MGpp03Nmwtq2et3UDjoS0x1zxM2C3TFmfZl4tMUCCiY g5T1UET5pzLFnYoIa5M8JuQytrwOph8ouALtjPVqxy6AFBxuNyKgF9iy63/NNFTftgyd Q/kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mKgCa5i8; 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 r4si10545960ejy.388.2020.09.15.16.52.18; Tue, 15 Sep 2020 16:52:41 -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=mKgCa5i8; 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 S1726986AbgIOXvm (ORCPT + 99 others); Tue, 15 Sep 2020 19:51:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:47654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727087AbgIOOcm (ORCPT ); Tue, 15 Sep 2020 10:32:42 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 3F89722C9E; Tue, 15 Sep 2020 14:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600179846; bh=pqkBCZbfXLAK3NI373fRnWPFNbYoVbdXIH8h5Xe3rZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mKgCa5i80ltRy9bPMTcii6c4SWxAsqfEHm+lqEtilcwlYzeN+oWJwOp6g+pQZBft1 Bn7TO5DkYzkCzxJ7z7girisfaNBTr4Ok1CzXIsjwfb6z2iTkSdKd0dHtmsF1eJSBzp JMBJNP2yam9g/9e9ocFq9VSULJx/tsZPMm4jexQA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jing Xiangfeng , Tony Lindgren , Sasha Levin Subject: [PATCH 5.8 001/177] ARM: OMAP2+: Fix an IS_ERR() vs NULL check in _get_pwrdm() Date: Tue, 15 Sep 2020 16:11:12 +0200 Message-Id: <20200915140653.691038767@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915140653.610388773@linuxfoundation.org> References: <20200915140653.610388773@linuxfoundation.org> User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore 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: Jing Xiangfeng [ Upstream commit a58cfdba2039ff2d5758840e97a23a2dedecf1e8 ] The of_clk_get() function returns error pointers, it never returns NULL. Fixes: 4ea3711aece4 ("ARM: OMAP2+: omap-iommu.c conversion to ti-sysc") Signed-off-by: Jing Xiangfeng Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/mach-omap2/omap-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c index 54aff33e55e6e..bfa5e1b8dba7f 100644 --- a/arch/arm/mach-omap2/omap-iommu.c +++ b/arch/arm/mach-omap2/omap-iommu.c @@ -74,7 +74,7 @@ static struct powerdomain *_get_pwrdm(struct device *dev) return pwrdm; clk = of_clk_get(dev->of_node->parent, 0); - if (!clk) { + if (IS_ERR(clk)) { dev_err(dev, "no fck found\n"); return NULL; } -- 2.25.1