Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1284370imm; Thu, 6 Sep 2018 19:55:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY09bHroijBKfrKVSwPgZNpzrTosMrHtRoKvsVyFyliivj9myN/t4FEIbXwEABZJAUp28a1 X-Received: by 2002:a17:902:ab94:: with SMTP id f20-v6mr5817169plr.231.1536288912055; Thu, 06 Sep 2018 19:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536288912; cv=none; d=google.com; s=arc-20160816; b=DkJf0DZMiv1e1KeMrHuv2Wu0VcyzR4iiXUrTZNzPXCZr3FA79JgXNlBbnJMJYZnWcq M4Uc0Ojn6O9f5a2U0c+LG247ZHKxnrBm77FHPtlb3UoL6eMTqql4L90fW3S0iNc7fdmG gP9LBbqt2cS7MRZ1/DRNAOgPSUrB2YUUQziJkRD+dLjsdaho5zlil4M2VrVrKBeqKqvg elhhIBILYtQcQNOZtYgr9NxyQWl7mbhM3gfoYx2j7iTzIFZDndujelS7cBwFfxKNNEL4 SevXVwdC6//75MfYTt1kA51Jf4EVmDLHfurHuJH/SuvEjDTgoiZSD1Ag0+D4eNq2/lrr 7aOA== 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=CleZwbPKpa609Ad0W9yX1fP8RfbgrLqDHWMIc/bskUM=; b=Ls4oHbXDvaVKCdq8zKUS9JTHp2JkU2qu+EfkHT7D4dUVMT4pu7IjHRpye3t0bm2Uky fwAnr5Rfk2t4OANDKBBxIyoqdAMDsPrMoLM8S5okDJnHbjH1imsz9nZSGUKxLQgbKLVi WUHFentAXh3OjkmN9SDZPZ8wiZV/hRHiE3mlb6sU+i9Kkns3T29ZsloGR4pkxZ1vLN26 edosj1HlOFNH9WO7DFoqV4ivdSsi2J5181CaVUN8CkErY+QoCvsuNg2qcJbRPCSP8ePG zjgHRNDg5Hpop6dX+WYI0jdmpHbyLctcVIk9b+d8EIA3I/IAHHLCj/st+bNS3aP+VNeW X9ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=ms5O2lt5; 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 v1-v6si7067483plb.387.2018.09.06.19.54.57; Thu, 06 Sep 2018 19:55:12 -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=ms5O2lt5; 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 S1729253AbeIGFiv (ORCPT + 99 others); Fri, 7 Sep 2018 01:38:51 -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 S1728769AbeIGFO1 (ORCPT ); Fri, 7 Sep 2018 01:14:27 -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=CleZwbPKpa609Ad0W9yX1fP8RfbgrLqDHWMIc/bskUM=; b=ms5O2lt5OBPENPSAyekw+AT9hD/pqyXeWbq39/HBhhivHXLZfPlpM0PEJraXdbyoJBUH5Fw459/wUmyk3nAjnElsZg71Zd/Saeo2EF8Fdw8JHzt1KiwHAtPX1hwCXkefnsqmcy7CJJojtbbPXADEUHQbYOK/oyygR8/FLRuYEI8= 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:05 +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:05 +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 17/88] clk: imx6sll: fix missing of_node_put() Thread-Topic: [PATCH AUTOSEL 4.18 17/88] clk: imx6sll: fix missing of_node_put() Thread-Index: AQHURkLCAQXP43uh7UWhbIRVfuOaYA== Date: Fri, 7 Sep 2018 00:36:04 +0000 Message-ID: <20180907003547.57567-17-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:2Bligw/3mKrTyoxZ9zIdk3T+xjDDFHtm29u/4Ta1dJN3UwjdzEOdYtXp3p6WiWbozvArrsEyZ5dkJQ2Zk7uDe4eKcK+8dmn5WxWC96hx1d87GlC7wbBatipeiwIWsBtoIIizVUioHjHczTEeQ5KyuP8ID2mmfjtl6/Mimf8x0FMMi9hx4bAHUhaq28igjwPbITOAtZKTUnUPEW07gRkyqF2u/ifu9/5ZDqbSIanSGmT7xhKrzameyY9Su+1JH4KL7pc3I4cuTchUF/3sWQ0A5Uf6/JBIdfiRAQBDDY/oUCddSr3+4mAmDomHWzoA68c0px0NLECRK9F7tuF66h5qC9OOjPce24kobBx2XdDIFeomMBTOMnG+FxWjsqF4FI4UF8MreCe+7QrtUa1kCcPSslmU6gHVqsjdu92qEIr6oM2H0YqSSQgkd1Hs4tnRrw2KMUrSOFajsVCTWdMCzdj9hw==;5:/uN07U8YmELFmWIaHjtsJ4/clevFZYsDKbIftO1vNW6uuRuOd2N2hSAfZx9urSxwd/qIe1y7cWxvX/XuWPm6h/II7ddfPoPFyJVOyKg/+Eu5nVSWjm6Ofe6N3nAq9w8Db176acx72FPV7tedXJlLaWE7lAXHVlpCdEtmTxjpyhk=;7:raukxNWW3OEEw0hX54MqIEuDoSd46/0xILM+nFkylOSY9T0EnfpW/Epj4FRqmfRwowKCPHjRg7mg2ovF/Gc4J6zVsz8gSBnQQ/sDai7F2i1eBdyRD9MEIqm1EYZtyyqHpoFbP0b6grY2BoTC5MkeouyUvOkBFpaLddwSW4WuZesqiyjzk6tN7OkrlT3T7DJFORiG9ErWVM4t29v809RFrirf6/Byw7S3144w3mez6RxKeY1/A2T/Od1OXENW+nRU x-ms-office365-filtering-correlation-id: 31d724bf-503b-498c-9577-08d61459e53e 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: fM0epYqUfZcUHlFsR+ROxjFz2yp7Ra/ZNH/wlp3YWta+iNpHwEyHigVinjJC1FC5pTupMxjfO0y74E/CdxqP+1jdVD3dHJKx2yb6piCrIoF/uw6iHI3D53Fa7hVm3BYwfA2IvdkjivJI0svzDuukV1rSmfI5J8IcGe94g3x9J5ML5e8YKUcFmuXUektwwfpIcavwMQ2KJQxrEzRVeZcUElinLM7rY3YmADIL93gNNLUknwEMuZ23ASPXBW4Bc+C7z+q7k4DslRm3n3VKKppe9LuQrRDT+pMlWK4bhQ9BknTW8rJqvb+VAAOV33UZMQ9fWIX9bKmOWrYKg4mHV9RhvZX4EmHG1MqjXPG/L68U1NI= 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: 31d724bf-503b-498c-9577-08d61459e53e X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2018 00:36:04.8120 (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 7f5eac5934d747535f9ffc997792a0a6eb289374 ] 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: 4a5f720b6542 ("clk: imx: add clock driver for imx6sll") Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/imx/clk-imx6sll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx6sll.c b/drivers/clk/imx/clk-imx6sll.c index 3651c77fbabe..645d8a42007c 100644 --- a/drivers/clk/imx/clk-imx6sll.c +++ b/drivers/clk/imx/clk-imx6sll.c @@ -92,6 +92,7 @@ static void __init imx6sll_clocks_init(struct device_node= *ccm_node) =20 np =3D of_find_compatible_node(NULL, NULL, "fsl,imx6sll-anatop"); base =3D of_iomap(np, 0); + of_node_put(np); WARN_ON(!base); =20 /* Do not bypass PLLs initially */ --=20 2.17.1