From patchwork Fri Jul 1 09:42:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9209627 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 81165607D8 for ; Fri, 1 Jul 2016 09:51:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7173E28529 for ; Fri, 1 Jul 2016 09:51:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 648512867A; Fri, 1 Jul 2016 09:51:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 00AEB28529 for ; Fri, 1 Jul 2016 09:51:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bIv5A-0002Sr-3M; Fri, 01 Jul 2016 09:49:56 +0000 Received: from mail-by2nam03on0611.outbound.protection.outlook.com ([2a01:111:f400:fe4a::611] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bIv4p-00028s-Vq for linux-arm-kernel@lists.infradead.org; Fri, 01 Jul 2016 09:49:37 +0000 Received: from BLUPR0301CA0039.namprd03.prod.outlook.com (10.162.113.177) by SN2PR03MB1933.namprd03.prod.outlook.com (10.164.114.157) with Microsoft SMTP Server (TLS) id 15.1.447.15; Fri, 1 Jul 2016 09:49:19 +0000 Received: from BL2FFO11FD018.protection.gbl (2a01:111:f400:7c09::163) by BLUPR0301CA0039.outlook.office365.com (2a01:111:e400:5259::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Fri, 1 Jul 2016 09:49:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; samsung.com; dkim=none (message not signed) header.d=none; samsung.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD018.mail.protection.outlook.com (10.173.161.36) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Fri, 1 Jul 2016 09:49:18 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u619mwoV013455; Fri, 1 Jul 2016 02:49:15 -0700 From: Peter Chen To: , , , , Subject: [PATCH 6/7] devfreq: add missing of_node_put after calling of_parse_phandle Date: Fri, 1 Jul 2016 17:42:00 +0800 Message-ID: <1467366121-14120-7-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467366121-14120-1-git-send-email-peter.chen@nxp.com> References: <1467366121-14120-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131118401590586267; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(69596002)(81156014)(81166006)(105606002)(5001770100001)(2906002)(305945005)(50986999)(2950100001)(586003)(76176999)(5003940100001)(48376002)(8676002)(19580395003)(106466001)(50466002)(8936002)(85426001)(92566002)(8666005)(77096005)(87936001)(104016004)(7846002)(47776003)(4326007)(19580405001)(229853001)(2201001)(68736007)(6806005)(86362001)(50226002)(36756003)(97736004)(189998001)(11100500001)(356003)(33646002)(7059030)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB1933; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD018; 1:rOHqGcuDTGyD+RkC7Laei9Sbat3bh5MdniBrMrgloaRa9TApFDPJIz1lXDCuHpXebRM9gQi7qkX+xDNojHuENmCDmcnw8fdw92jZEOQa6JPB6OoljyejGukh44hkkU/h8CJ1+1cqQ5C4ZOySQ3Y1a7E/YtR8AvJhhqAN9/kE8/pDqRQJOJj65KeqoEpZ5rWMv4l3cPfrOTJ7+9jnHFzTLdTCi0KGcy7EphVz3Lohl07GrFA4j68HW/NP+wt36RnHGwoWA66At3Ef225G9FtVIaI/0UMbX/97JMnk5S3RyY3oJUlC1VRxg1E9uhy26MkahbGHXu+H66RHDZP4gND5oyIo8KdbppkUT+O2cuJai25ybw5tP6lCGihAJ3GgMuaPLneu3AE7eDCpdRbCcNXEc7O5Wg0ysszGtBUH0BHmSrGopa3dqOgWnVgCdGjnbi3W/hgXQQpi6h5BSZu46SqHs9ap+bdxlOymmUHH/k/eINdev74gHHHU+aRBJg2KftUjYpVwu9vH+1CE8W86R5Bm5oW2M+YD/HZHV+Y3VZEowfbhDdwj0p2mI1HSZL9je/UtgBbJ3ig0oARy2xunX+0omCaiceB6JXPy2kDavIhKGmMpabdSlTvzjbdLBrVH0Pm0 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: e5363a5a-914d-46d1-8a3a-08d3a194f8c7 X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1933; 2:dISPCvAncvDI0uIuMsbsRhKhtlJZB3n0apcKkxkKatslAj6Xo47R+lJi7FsTTI8uh9DN7fx/AYCKWIpvh4REPG6oMiFdJ7WLDTZU0saecUx7z2SxJdFeeH9u6/oORqlO62rxoHiEKPD5EVA9BhS3DkPO6KTdYiZJW/DBjMCAQw6E4l/4KN3ac0Tf0jsuwyCI; 3:zZNfqv4FNzYLax1ZQW4TCozmwB2n1/B745ehLwlHPfEjP04lRV6Ww+94cLzw+gAAHjJO2Z2uB1uksKNfqfN+QUsezWi1mmAcsIkzBT7/6yb4UgqwJ5TMdPS8Ic18K9l+tfhoxdKftqb9WqPW5xdD4YSiV7BSCErcZPCWBNFjHKSZCLg8Kp+sgWBJkfogcPscL5TqlXZ396WeZCtm/5GnMqQqcpIjA5Tl1MTENd/s1y8=; 25:0OjmAQnhiWFB+YovzEZX6/wedkYIjzH3J76qbz9tPeMZjNaqHRDrnGR1CroL0Kkhbh8MQcWCsFgyt75EYHbYMtnV4X4tEuz9XhgAfFrkN3B1i9UjLNZR2SPuVI16LrBMedtmF56NTehf1rn6hWNynwoOumDQ96Hj/gqu4zAFSDpM8/0MAOqsKw8T81hpjhjzWA3Q0cjnHdY8yGxaYBaqKABX9w57khG3hRgvJHphwcTHQfdQTaYzKZVIXaA8MXkP X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN2PR03MB1933; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(7411616537696)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(13015025)(13018025)(13017025)(13024025)(13023025)(10201501046)(3002001)(6055026); SRVR:SN2PR03MB1933; BCL:0; PCL:0; RULEID:(400006); SRVR:SN2PR03MB1933; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1933; 4:5M7ZqybOyzglpaNHwaeR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ascii?Q?Bht0b2HljVdLMENueQ=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1933; 5:zxcdVCD1cUAjDtQgrNBzd9ksZYEcXZvCADUSmaN8JiWptCyH4tiGoc0toTDmozI/ocsbX5tPFrcnkBQasFAbdPwOh1KwY/PcJN4vEK1Flc87+DWckG9kDW2S7vxfnYVUtrIKy/OEbL+kWq7sz2BitvN7ep1fV8KnIEOK3Chucv0=; 24:JvWXd0LlmuKfd8E3mpVBG17qSH0iiD7or/VdpJfFPw7DlhAEbmQS9B6ekAl+ApAMhmeJrvLNvpnQClnw0VIdDZcze8I5gt6B+XjV5X6flsA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2016 09:49:18.8090 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB1933 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160701_024936_119430_BE671E32 X-CRM114-Status: UNSURE ( 7.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Chen , Kyungmin Park , MyungJoo Ham Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. Cc: MyungJoo Ham Cc: Kyungmin Park Signed-off-by: Peter Chen --- drivers/devfreq/devfreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 1d6c803..3f2142f 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -706,10 +706,12 @@ struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev, int index) if (devfreq->dev.parent && devfreq->dev.parent->of_node == node) { mutex_unlock(&devfreq_list_lock); + of_node_put(node); return devfreq; } } mutex_unlock(&devfreq_list_lock); + of_node_put(node); return ERR_PTR(-EPROBE_DEFER); }