From patchwork Tue Jul 5 02:11:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9213457 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 2269A6086B for ; Tue, 5 Jul 2016 02:20:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1312F28803 for ; Tue, 5 Jul 2016 02:20:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 071FD2881B; Tue, 5 Jul 2016 02:20:20 +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 1E3BC28813 for ; Tue, 5 Jul 2016 02:20:16 +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 1bKFwo-0000AF-Hh; Tue, 05 Jul 2016 02:18:50 +0000 Received: from mail-dm3nam03on0046.outbound.protection.outlook.com ([104.47.41.46] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bKFwh-000085-30 for linux-arm-kernel@lists.infradead.org; Tue, 05 Jul 2016 02:18:44 +0000 Received: from BN3PR0301CA0069.namprd03.prod.outlook.com (10.160.152.165) by BL2PR03MB578.namprd03.prod.outlook.com (10.141.92.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16; Tue, 5 Jul 2016 02:18:21 +0000 Received: from BN1BFFO11FD037.protection.gbl (2a01:111:f400:7c10::1:106) by BN3PR0301CA0069.outlook.office365.com (2a01:111:e400:401e::37) 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; Tue, 5 Jul 2016 02:18:21 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; 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 BN1BFFO11FD037.mail.protection.outlook.com (10.58.144.100) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Tue, 5 Jul 2016 02:18:19 +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 u652IESP004382; Mon, 4 Jul 2016 19:18:17 -0700 From: Peter Chen To: Subject: [PATCH 2/2] hwtracing: coresight: of_coresight: add missing of_node_put after calling of_parse_phandle Date: Tue, 5 Jul 2016 10:11:04 +0800 Message-ID: <1467684664-21155-2-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467684664-21155-1-git-send-email-peter.chen@nxp.com> References: <1467684664-21155-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131121587006889909; (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)(199003)(189002)(2950100001)(2906002)(85426001)(104016004)(92566002)(586003)(86362001)(77096005)(48376002)(6806005)(50466002)(87936001)(4326007)(7846002)(81156014)(81166006)(2351001)(8676002)(76176999)(11100500001)(50226002)(189998001)(19580405001)(5003940100001)(19580395003)(68736007)(47776003)(50986999)(8666005)(356003)(105606002)(8936002)(33646002)(36756003)(69596002)(305945005)(106466001)(110136002)(229853001)(97736004)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB578; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD037; 1:ql41c7NRCSBlIwSDyDkFeYhFJKA8sI7FaRz8nOC0RCTcX2esrLTCiwPukmlE8+xC/iWFB8IU546qZdi4w8+Cd1Bb7cz7w0YBv3OPNh5y+qDSQFraBlV/7x5nBDBOyfotmqbTr0vJDt8IGyeQC73JBDLnt+QnThrVOQmb8KCV8ceFDvpSJbsIRV4fKMpyDA4hIgXe/GKYtRm/RHC+OfoT7HNKyCRkj3VnicTJCBf+wpHXv7Os6Cv26izp7br4BU9lO8DEIN8FbF85FJ59p4xiXPfu5Cwpoq7tVTOdmpztIaHMsYC8ylBKlNUU+QLo5gsu/b30H+sSuRH9asLkbP/H6OVsnLCFETua8Q09t6ByrTuAbdpWg+WePiOWH7pGgM8XB7RYVmj2YbZXiAm8oEulH2UEonAj+LckaF+mXy87OLV+U4VE6gXS+kTpRKS1Ja9wbAQzlFqRIzgf+SNl7DhOyPvWL7/N3z6kYZekfXVeq7KULPhymNwKB3w7JXGK2vFM8/dbsgUu2vtJsQOcL+LiUmbKmAKz6SRAN/SrB+NgHZzMBNdIteRLtwmvN2G4AvoR17N7o/aq4J9q8XW2zf17SbL+J/q1b7sRfCrbXcgLOgrc1MxoRAFYc9m2JMQMQGTu MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 2771b2a3-a7ca-445f-fe54-08d3a47aa262 X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB578; 2:wcT4Z6GttaJfWQARpxY7/8UKIsu4IipmYyu+LiU6B5X0IGRGbaWAvlPwtmGS9579img3wZEB2DYyXziIdmHyywHHQC6DUoKg0oPMiIqv0Ckq92KpbuEnIxpzx9gwk9qHplIB0jw9MTn6vBKYFygw59Yk2UzpUagFhxzQqNW+rpg0MOSX79pR4LFImbG4TJp7; 3:L6Jj1iCh8ToxluYs88mQKLsP6g4PFPQiIP4hcY2JrF7JrCgdr2W6lEW0qBKvgplGp/9HKabrAAou19nKjmEcy5ESajHeoh0g43G8CFxhLcjk8z/jvNdB60HtAnG6nG3o09Idr0IYvKdi1eaq72oMvSw78MXpyjucIMwzWp0HBji8ZUS6Ck5iqzI1TU0iWH9xKi5d2PdjhK8m/k53m5fw7O2jzmbe+p6nGsEuRWxv940= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB578; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB578; 25:S/m2JsZYZe8o+zpwQaJQZqq+bj/ti5QA71uqhZd5N28CMyVTtcCFAVz4wfLY68bM/QlkEdeOqUc7o0df2jkUjhh9tbkiPLslhEgEBit22LBBu8SsnUyzdfSVmE4/rermb02Dc2yVkij6wT13FykotpC1sDQs/wp3ZoqI2oSx6G+w1NQHpAt5LxTnXLJG/l1ifj3YaIW49r0ID0FL/8v5Cn2WnRiJMqvdNLuWQvVzu4Owe6Mb0S/53qnk9vZQlVXntpa+1jZe33y2/RM1ch7cbBUFkecQBdRJL7MPOATb+xWRFuq40tVgGvRh20wxkpmvq9oSaiWngcA/u5ScK2JNwmAKRgt2MmiaDLrdygcZ6mASzeNGL3gh4PZyuCAs3JSLv0w7odD6rKmx5pgRznWshbD/4wN4AQnx77G71E/gGe6GpqDryMvgRGmrGSy21f3cLMp07y7Eg8ZhqocYfwRHNfRo1L/2+mgXOFUxBi2jAMFLHCKHYhDhAaNn/7pSQAal+vUHesP2IkgyIlWPHpoBtpQvJ4JuhXrffAmDQA7qj9kqY2Nebu2xdET3O83Q+U0UfDwg2Xc24/D231OBms0l3vA03H1zG4DZnxYxYq856SZeo6UgsAeUEk2g9hkrWSdyseJPNVYhHrrzsad2VvTyyy2MPLpBpJVlzpRVFpBwo4e/unam1pBmSKNr5dpDjOED0dxCiFi7QQG6x2R9ir9eyA==; 31:pTaIEcKbL4450A1wsTD51FPlly5JC6T5V+JyKwHTylbweTscnVkou34NmqNQhVdI7FMvQfz8sHNqd5lRUnTsOuF2dlnpZumVd/FEwdZzGi/W125w6R8fMfyGaHd4zippmX2MvCgNnEhwBZVUnIzfR9/BrnLv86zQqFsZ49bUy87PjzvUQ+Sg7QeejtFGeAPSYCH4lvT9U1Ye4FitsTzKLw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(258649278758335); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13024025)(13018025)(13015025)(13017025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:BL2PR03MB578; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB578; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB578; 4:ONJUanOEPRhaq329aLstfVax6cfcVS6bBJTNF7XRG7CljLqeF+y0HifCD0OuYiI6/e/qk/EvCI7sLlNg7PQoJzF6q5GboB5sS79u1KBx6WXKI3KYagOXB8cVKPu+RpRyMaiVMyHEXLgNJ9FgaOCXa+Lun0JfWZ1Cx94SBplQJFXk6Kofn5w0qVwfOmKE7xTF4FLCgTJynQ55LLx+h9ABwP8ue3+wK9HA9zuCRNQkwOT6thlII20viOLTRpFkCR2xbW8aRj8Dn5sXA4aVZV+4B61ie51vLfvz6d0PkesCC6wxlJoNCG9vdySDG/uX8CiX/LZNRXkBbfeznFUCER+c+632wDunLV3FYPk7g3MQhm2WZ+48nf2dF1I35zE9jga9efvdNsPwhR5ux99Vn2PU+qF8ehYaf9A3/hOhl5s7hzFtDMByp1oOHgIg/tA4eRENkzp79PkmVhj9TgjsHEGbLaAdOgkStrRAduLUZosycE90iTrnsUYPu93/jMaxQ5rgok74o8dds5CSi7zPUZsqMW8CKKOc9hGmCpeXklFH6Rp+BUVMXpP8Ax85ihtE+088 X-Forefront-PRVS: 0994F5E0C5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB578; 23:KghVWGbTRmpJSt4t7yKHEaxKgdf19Op1BFMGi+GHV7?= =?us-ascii?Q?A98E96PoMVaJWo6pUhpDyc/O3PJx6lx2YRu4tyapFlzNDO3Y0nAge4TzPFwf?= =?us-ascii?Q?bPAfc/NsCwy3RoCC4N620HV5JSEWK9gjS9IZhcS5pTyx4Z2hynMGZiG1sRMz?= =?us-ascii?Q?p0whELLr63A7P40dUaqffgKBXKSE3rwiBnxwVpPtlLUJ5BeX9Bkn5did2GGX?= =?us-ascii?Q?AGDQAKT5dm9vAplobU9ddvJRIJ3kYO36up/tf5s2X8qp5UHT3dwD48VedplK?= =?us-ascii?Q?EI1PixDfaw9WXA9sNYVpoGrnAiguAX4W5UFN00zHmH/SKgQw4J+F0lThNpGP?= =?us-ascii?Q?3vifn7nIHWld2gs8p5lNzEm4xINdOuTK5gjKtSg95uyNXXUBQ5iea+rdiwLY?= =?us-ascii?Q?M3hidmVYDnUopXddAuYXcddKrmkKkU6zlbqWNBlRDG3svA7CxzLHgwztD+w7?= =?us-ascii?Q?r8Wwt9aSKWOvctn6s0kjUNf307w4cxcklW3QQM3v/RrU8e3xWQ15iy8hcIih?= =?us-ascii?Q?Qujv6OCeaGw1zYKbREVUlB+0HG/jpLboTSoebDCSIAfaaFqzrgIrhjyfXGs3?= =?us-ascii?Q?aXOmM7JsXT0SyzNUNIb7mRvgSFjZQX7Ym4vm5nsZKCZkK9W2rY80sgaWry79?= =?us-ascii?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Pzvwwh5taoW934Xb+ni+UVgP4Qvymv2cyoAcpn/fp8rMN3i6Xckp+ZNqKqgN4EkAKXVBYM89RZPxh+fnUUszr0fPT1/LHYU=; 24:oFP72m8smH3AM9u3y2NTsxwulDmhg/DuaDeY1q4BpLuh9thXx4IBYlUiSn3rF7hr1n9kH28wSByyYuNDyA5msibuconqXJ24iuhgtD1QoSo=; 7:OZ7QYwjpsCZv7BTSXOQrGQyPzqeIIkGVi7EulTQgJdZ7oBHhSaevsa0TvqnrQOI9qNQ9jaT6p8/RR0cktL/ut5v0JDCL46fM5oIJ8NbTUHUEGmZ75U0it4y6YIFEJt8e7ubRSPyes/v2XATv/ox1Icbxbmsd7odnU8X7zIcedzHEZbjsWyiFcSCoTNN6L8xwcmYvGveNyLT5qLI/7NBiM46oCeh6t72mk9vX8DGg8Fx53kiaOaP2u2m9laYhhUgN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2016 02:18:19.4253 (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: BL2PR03MB578 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160704_191843_257818_88CF3547 X-CRM114-Status: UNSURE ( 8.57 ) 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 , linux-arm-kernel@lists.infradead.org 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: linux-arm-kernel@lists.infradead.org Cc: Mathieu Poirier Signed-off-by: Peter Chen --- drivers/hwtracing/coresight/of_coresight.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c index b68da18..b693a4b 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c @@ -184,6 +184,7 @@ struct coresight_platform_data *of_get_coresight_platform_data( break; } } + of_node_put(dn); return pdata; }