Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp460797ybl; Tue, 28 Jan 2020 06:19:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwx+brPyHpfidgxwT3xCSmS2FpBywx6u+65WG0V1CMzxSAkZfLSS72fh4/vdDahxBcMZDky X-Received: by 2002:a9d:7559:: with SMTP id b25mr689038otl.189.1580221185561; Tue, 28 Jan 2020 06:19:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221185; cv=none; d=google.com; s=arc-20160816; b=sTvYpTZr3GXNPjgc2XI8ppTAkmVJFDI8NjUQo3AfBMfd0n6zwlclwjnE2Hu2wS48/L dZ82DIqzEfpZQiskPgyA8j5/EL3nqStPqRTLDCXwkkA6sDU34xqF4kMpYXGekbHO4KE/ GYDt2rAP+0u7APAhhK98ksFq9y+I/xvNVigX/ZBsMqpcMad7bsinqWuix5RPG0AmtR+b 87KHbfioht8M25kZpoZk0XMDPSGTD/kH8tfOXoOqlz8PQDWAZXl1QWPeytzrpCiHMifP L9FhxK3w8pWPH3Ro5sUZWT9dKhSxxw8gfivfdWlQyu+vfiRcgyztbayJ/azRTEwrREsu zTLg== 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=76OWpUZqdLOym4buUyEA1I0yereePpzhYfnH5fncRt8=; b=0nl3BiySI7PAnIih0mwoYTTxum9GB5WkC1CHUbxXdzaHcO6Ib8I1sl8c2nJrofKGsK eSiERY3QrQt77vUBThHWz1xw/1a/9oVcZKI9OzgcCx2zq2beObHvhkZcBawooA2/dnws u9igirx1GR+EGW6LoVtOUiSNj6aYFmTSDOpBuo8FbHq4JzQp+QuC0qgIpHG9E28QleFZ 3nl1ZRxjtZ+nPz1Vw33it2B3QU4/3nercAmIT1kJofTR9QW6yEsrjFSK/NRb6woQiSw4 uEszeCFd6pd/JPT1rIXZtEX+nz3SWHL3azSEAwUrbkJRvjtYOgVFOpNYdyKCwnQjbOip WfHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="x0+Eyx/e"; 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 w7si9371620otq.250.2020.01.28.06.19.33; Tue, 28 Jan 2020 06:19:45 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b="x0+Eyx/e"; 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 S1730549AbgA1ORe (ORCPT + 99 others); Tue, 28 Jan 2020 09:17:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:41316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730090AbgA1ORc (ORCPT ); Tue, 28 Jan 2020 09:17:32 -0500 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 9CE652071E; Tue, 28 Jan 2020 14:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221052; bh=/ZeNBeRi+wBBWwpnIePn081VkZesiruP2fgMfFLHADM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x0+Eyx/emozme4BrNHwBnHiJqhG7tRrZp93qI6ljw/Jl+c9M3apLnd+uNn8ViXtEZ c0OtCj+F2EzuQAnojC0WqLna4bWtCcab9y5b639MriRHX282nDuI+wgAAoK+pHUzWk DOYXh8wE0yYK+yOktfkknIkor4DtX1MhvW57XJVM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yangtao Li , Stephen Boyd , Sasha Levin Subject: [PATCH 4.9 032/271] clk: imx7d: fix refcount leak in imx7d_clocks_init() Date: Tue, 28 Jan 2020 15:03:01 +0100 Message-Id: <20200128135855.072395906@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@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: Yangtao Li [ Upstream commit 5f8c183a996b76bb09748073c856e4246fd4ce95 ] The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li Fixes: 8f6d8094b215 ("ARM: imx: add imx7d clk tree support") Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/imx/clk-imx7d.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index e7c7353a86fc6..8c0c0d0151321 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -415,6 +415,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) np = of_find_compatible_node(NULL, NULL, "fsl,imx7d-anatop"); base = of_iomap(np, 0); WARN_ON(!base); + of_node_put(np); clks[IMX7D_PLL_ARM_MAIN_SRC] = imx_clk_mux("pll_arm_main_src", base + 0x60, 14, 2, pll_bypass_src_sel, ARRAY_SIZE(pll_bypass_src_sel)); clks[IMX7D_PLL_DRAM_MAIN_SRC] = imx_clk_mux("pll_dram_main_src", base + 0x70, 14, 2, pll_bypass_src_sel, ARRAY_SIZE(pll_bypass_src_sel)); -- 2.20.1