Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1225702imm; Thu, 6 Sep 2018 18:21:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZcqlcr8kH6uEOS03BKtbpxHeqvoihXOpizMWYXab3x6OiopL+Jgjii0XlpxZTLWR/ptvVg X-Received: by 2002:a62:444d:: with SMTP id r74-v6mr5897328pfa.96.1536283311426; Thu, 06 Sep 2018 18:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536283311; cv=none; d=google.com; s=arc-20160816; b=c4wjc4EWbHLa2nrSCp/oJ+I9iTG42MzQ29HIlmd8DAOII0qvUiMoqYYGgcutEVJx7n UD995u0miN7MwW4zjKFtp3EPWG5xmV2973UPRco5CRJ4tw5KMiJn4/tg6sLvOoDQEvoL 4J5uQaLCUAAMUxZbcKD92sXWG6gD0+temhgTy3+mvRhSyYSdoiY0TxturIGBrgQI1L6E VkHxbBMVdg/1VZU9Eez9ohGXlV8x5EajTOCFMcMJOqMtzVmY6M4A7tBCXVUOuuckR0mw o6rTPURVcERtASDXFLRTyGxgld/eMCmseEgHvzrMXoUQ1OtvtxMUhnOPEEf5VW3nMF/N +ZaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=XwtNuS6TstVOuukAGbqeV792rdq/RBPkboKdtt+8QtE=; b=OzpA7YqVtTN/uFkbeMWhApf0p7moW6zD9xeRXQcp5bMEmFdB/rAlcfESSQcytRczZK QfnSCzbRitN7FtYvSWM0ptAjeW71hZ2x3kZZFBuzmr1n2Po9Tfotm+FTBcibkVQh8ZUk gJHhrx16/1+UpaUzkdmRHPiRoBm0mBVJgzLa1CkTfu4i2Cr4zTDMIuQV0/AQ+3rH+zrU ji/U68p+iHEX+bRSWRNP7PVMNauADii3okgxDqDsl1rSNr01AHk9VtdCMI2cEHN3cvsr vb2/xzyitmeQKimc5cnrHUHtZyf2O0NBd4H9VqX6N9iZuxSKSpiIpNywaZ+7hSow8CyE fwZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=KfYgO5cK; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j15-v6si6697014pgm.95.2018.09.06.18.21.35; Thu, 06 Sep 2018 18:21:51 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=KfYgO5cK; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728872AbeIGFO1 (ORCPT + 99 others); Fri, 7 Sep 2018 01:14:27 -0400 Received: from mail-eopbgr690126.outbound.protection.outlook.com ([40.107.69.126]:51988 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728163AbeIGFO0 (ORCPT ); Fri, 7 Sep 2018 01:14:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XwtNuS6TstVOuukAGbqeV792rdq/RBPkboKdtt+8QtE=; b=KfYgO5cKIRL1LGz2sl4e1WEk89+ozcGZUG/uAdypWgJsLZjROKcc6icXbQg6qBMDbir3QWPF6nBl/wv8ad7JVHzRvj6l1GyZyTJQLA0vQ6P4gCQABXzl3IISAEjyYvX51NGJnMof085Qzs7Q2kkVXx9uDfFfu6JFDEaI3HLPcrQ= Received: from CY4PR21MB0776.namprd21.prod.outlook.com (10.173.192.22) by CY4PR21MB0773.namprd21.prod.outlook.com (10.173.192.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.1; Fri, 7 Sep 2018 00:36:04 +0000 Received: from CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::7c3a:eea8:1391:1611]) by CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::7c3a:eea8:1391:1611%7]) with mapi id 15.20.1143.008; Fri, 7 Sep 2018 00:36:04 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Nicholas Mc Guire , Stephen Boyd , Sasha Levin Subject: [PATCH AUTOSEL 4.18 16/88] clk: imx6ul: fix missing of_node_put() Thread-Topic: [PATCH AUTOSEL 4.18 16/88] clk: imx6ul: fix missing of_node_put() Thread-Index: AQHURkLCEGfPg5Mt6ECxlxfbWT9Hfw== Date: Fri, 7 Sep 2018 00:36:04 +0000 Message-ID: <20180907003547.57567-16-alexander.levin@microsoft.com> References: <20180907003547.57567-1-alexander.levin@microsoft.com> In-Reply-To: <20180907003547.57567-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR21MB0773;6:z7qvQFrYvVpeXGzpSm6faKWBmWXylY06x2WHkNp21q7KV+2aJVRu+6oDMhWfA9+60QWKFuHMe1N4fogR9bapyhFFiu+mwl4b+UaMpN8Ibct7g8BC5b1cfkAgGoodb5Yy2oljCOOl9yqN6kwdbt2Y6aRYKUAjAuWEyGH0demvBBtOoj8PJv6+pOuBLX8gX6CSK0Eq7Ap26oBZI0lXrqmVOaOzPhTrCHN4Hmndzjl3t5o5/NXJo6rWtRS7HVpxEpdIgKf5yzHj1cXsEsdx4+CbTTdZU1/YAk/IJW92wxmNdQN1/vvRnrqlL3R0l81QFVTTHCm++zv9T6xe6gFXxRkz5H7OwcZ/H3EDvrd15hFr1m7GG+F/yTh3DcFlqBYEWrt3iqNNUy/vl1k+yXKYDOinaJZdOYZlBZrv0xdI8MMFR2u+9H+ql40oDzaLmEFevpyu3wna8gJAbh5U9buZSX/gIg==;5:Xwzls8IFuJoO9Wo0MHEFrm3td+tHuidUSYyqEhiXx2xiOFU4bj1GqYuglE5o45MxdvxmIDne+u+iIeHEbpKoQGY6VBuZHnOnSN8CM67BmWgVi6Grf2Y+jYOBVM74fAV0lXhwMSdjV5TsF8UDku8UljrGbGq0n7Sa28/GEBsxwcY=;7:cG9g4uF/FfGmPqnXHS+bj+xgA2CD41BKFigULt59Fx8eufuccCbDKoqyrj7AAApkC8GAIy3EhdYqRiUCko1iOHJhMHblKiX86vesulSdWhTI63k/EDur7upZmLeEaw+mXbZJXSyhuoquPhyLJyRa8V31CV+lR17Oqfqgjco3M8h+P/MFCXGvmr3/0BT/Sybxs7rTQuaydGkqHcjaeu38ACKj+2tRvqexOnuZTDkNRKiUG4anOK4+sCgyvIzOr+kT x-ms-office365-filtering-correlation-id: 8fbfc6de-ea2b-4e58-b2c3-08d61459e4d1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:CY4PR21MB0773; x-ms-traffictypediagnostic: CY4PR21MB0773: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231344)(944501410)(52105095)(2018427008)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699049)(76991033);SRVR:CY4PR21MB0773;BCL:0;PCL:0;RULEID:;SRVR:CY4PR21MB0773; x-forefront-prvs: 07880C4932 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(136003)(39860400002)(346002)(376002)(396003)(189003)(199004)(8676002)(5660300001)(106356001)(6436002)(25786009)(110136005)(54906003)(6506007)(105586002)(2906002)(486006)(53936002)(446003)(2616005)(476003)(4326008)(11346002)(5250100002)(107886003)(2501003)(86612001)(97736004)(6512007)(478600001)(3846002)(72206003)(6116002)(10290500003)(76176011)(68736007)(14454004)(1076002)(66066001)(26005)(575784001)(6486002)(99286004)(8936002)(36756003)(81166006)(86362001)(256004)(102836004)(81156014)(305945005)(186003)(22452003)(2900100001)(7736002)(10090500001)(316002)(217873002)(32563001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR21MB0773;H:CY4PR21MB0776.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: n2R8Z86/kp4d+WOl5q5mb10JqXrtP7qUJ90EWYosf9WlxXhE5eTADmmqzwGKKNPj3kRNTCZqtLU8wSXmSlgsrXy4gfzxXrfijAyvpEE3TJrTXL1lWRRNr3RrVBxvS4UydwCUe9dtkKq6tbTnskb6q8wnXgkxpeXNSWbvloAoIjdwJFWT2v+A3SgZK8Cug11gdhAzpr2gaGWXOCln9iF2yG4Ye15w3rT7ncL47+I35adaZ9VoScycuUH7c5Cy6KgwR8BJCJCbJJvfH1EjQo4kG78ePJ1AF8BZ6WCGFS1GpE24OQ2k5WmNNPoc2s/k1vTcGEE8hIjsVCZtXCV7VOuJS5SXatKVimRQPJu7G/JjW0I= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8fbfc6de-ea2b-4e58-b2c3-08d61459e4d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2018 00:36:04.1805 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0773 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicholas Mc Guire [ Upstream commit 11177e7a7aaef95935592072985526ebf0a3df43 ] of_find_compatible_node() is returning a device node with refcount incremented and must be explicitly decremented after the last use which is right after the us in of_iomap() here. Signed-off-by: Nicholas Mc Guire Fixes: 787b4271a6a0 ("clk: imx: add imx6ul clk tree support") Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/imx/clk-imx6ul.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c index ba563ba50b40..9f1a40498642 100644 --- a/drivers/clk/imx/clk-imx6ul.c +++ b/drivers/clk/imx/clk-imx6ul.c @@ -142,6 +142,7 @@ static void __init imx6ul_clocks_init(struct device_nod= e *ccm_node) =20 np =3D of_find_compatible_node(NULL, NULL, "fsl,imx6ul-anatop"); base =3D of_iomap(np, 0); + of_node_put(np); WARN_ON(!base); =20 clks[IMX6UL_PLL1_BYPASS_SRC] =3D imx_clk_mux("pll1_bypass_src", base + 0x= 00, 14, 1, pll_bypass_src_sels, ARRAY_SIZE(pll_bypass_src_sels)); --=20 2.17.1