Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp459643ybl; Tue, 28 Jan 2020 06:18:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzqlMJcI0MbMLl4G7WsGXZEk2Jj+GhbAfjG4nMhf+2BtcoRrjCtDYH3ti5ReaIkfqp6U6PM X-Received: by 2002:a9d:4d17:: with SMTP id n23mr14787322otf.85.1580221127274; Tue, 28 Jan 2020 06:18:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221127; cv=none; d=google.com; s=arc-20160816; b=qfMhfWmsnpVyjkrXZBZa4+HQL5WLIAbFn29mh8kA1TBogrDlXLLxgusGH0HFZ1hPlG qlIFS/IMb7fjekGcsoveVgpvy3/qfOy0X/JcWdz5t8JPqG2xJhGv/Oy+6QUloVA2ZYrN 8Fy2W6veoXwjNK9ZDzNMsSNrMQAkN/MKuT6MhOD99MCuufNbne9/yYFn230mNSn8+dkM kMIYFCwiTEmKZQ6wtHgZcf2jza/IkaKSNX0q/x+/TPH+rRg6mUC1oWAvHzz1XUb9iCSB 8cieXg2vS9PrBPOM+0+I4BuRZLrQYgbRQTF1AMqU+lMj9TaNB4n86ao+hNO+vl7asvYr afwA== 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=Wcyarsj8oz+zoEj+ZKWVqZWwXuxDktHTf0HbU1Tmuz8=; b=TB4H+mqa+mDPoeo8e4Rg/5GJPnRAzgzQuhhEqgCGAZt74H35zAgF/b2FXzSvm809gX tmmCTc6h/5bkER51Y6w7BOM1yNOB7JOZg2Kygwz3o4OU4X4e3qGOHFX/YCmH7cp16RKm yw5UK5NX57V4MI1KRcGrplENEFp6obwp/JA4XEl5NhGPEcVdgc0HEfjyuJA5TVRNNLoh EQ/Cd4tqeh4Oc8BL1YP6vsamcTJY8hoNpdTlS1QsbHUqOo6uf5Q0uw/2HP8XRgSfltU1 2va7lZxxnOJZIPBameTj6AP2oO34PKrvsnwAzeNE0oVWDIiWHqU23DziMLGkQCQvtArY pxXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G1JuiwCS; 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 x7si4825011oia.165.2020.01.28.06.18.35; Tue, 28 Jan 2020 06:18:47 -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=G1JuiwCS; 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 S1730187AbgA1ORg (ORCPT + 99 others); Tue, 28 Jan 2020 09:17:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:41386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730551AbgA1ORf (ORCPT ); Tue, 28 Jan 2020 09:17:35 -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 19CB52071E; Tue, 28 Jan 2020 14:17:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221054; bh=wm2Ar62adcsw3BeVOvNxyOZdb/aPQo0ZN3fCyz0dDuk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G1JuiwCSPUn/EUeEkTMfk7kaehAxUezEGI9EjKiCjX1QAMQlyhj76p6t3rrQx/xYj wTjrN/NSigPKmz/iYVxVmXn4JSP4o59t/Mtwj613aAEel5MlWm5XWpslv22Vu6vE0U g0CgUq0Isc2PNZ6hwHsTApKZyxPNXow+Vst0laB0= 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 033/271] clk: vf610: fix refcount leak in vf610_clocks_init() Date: Tue, 28 Jan 2020 15:03:02 +0100 Message-Id: <20200128135855.147770546@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 567177024e0313e4f0dcba7ba10c0732e50e655d ] 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: 1f2c5fd5f048 ("ARM: imx: add VF610 clock support") Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/imx/clk-vf610.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk/imx/clk-vf610.c index 0476353ab423f..a19ab032d0731 100644 --- a/drivers/clk/imx/clk-vf610.c +++ b/drivers/clk/imx/clk-vf610.c @@ -203,6 +203,7 @@ static void __init vf610_clocks_init(struct device_node *ccm_node) np = of_find_compatible_node(NULL, NULL, "fsl,vf610-anatop"); anatop_base = of_iomap(np, 0); BUG_ON(!anatop_base); + of_node_put(np); np = ccm_node; ccm_base = of_iomap(np, 0); -- 2.20.1