From patchwork Mon Jul 4 09:08:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9213307 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 BD61860467 for ; Tue, 5 Jul 2016 00:41:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAFDA287D0 for ; Tue, 5 Jul 2016 00:41:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C55F287EF; Tue, 5 Jul 2016 00:41:16 +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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 183CF287D0 for ; Tue, 5 Jul 2016 00:41:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BD0FE89E5A; Tue, 5 Jul 2016 00:41:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0044.outbound.protection.outlook.com [104.47.37.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7F5226E3D9 for ; Mon, 4 Jul 2016 09:31:06 +0000 (UTC) Received: from BN3PR0301CA0059.namprd03.prod.outlook.com (10.160.152.155) 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; Mon, 4 Jul 2016 09:16:06 +0000 Received: from BN1BFFO11FD053.protection.gbl (2a01:111:f400:7c10::1:119) by BN3PR0301CA0059.outlook.office365.com (2a01:111:e400:401e::27) 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; Mon, 4 Jul 2016 09:16:06 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; 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 BN1BFFO11FD053.mail.protection.outlook.com (10.58.145.8) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Mon, 4 Jul 2016 09:16:05 +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 u649G2rj026566; Mon, 4 Jul 2016 02:16:03 -0700 From: Peter Chen To: Subject: [PATCH 1/1] gpu: drm: omapdrm: dss-of: add missing of_node_put after calling of_parse_phandle Date: Mon, 4 Jul 2016 17:08:55 +0800 Message-ID: <1467623335-30765-1-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131120973660854413; (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)(2906002)(85426001)(104016004)(92566002)(586003)(77096005)(48376002)(6806005)(50466002)(86362001)(87936001)(4326007)(7846002)(106466001)(81156014)(81166006)(2351001)(8676002)(50226002)(189998001)(19580405001)(5003940100001)(11100500001)(19580395003)(68736007)(47776003)(8666005)(356003)(105606002)(36756003)(69596002)(33646002)(50986999)(305945005)(8936002)(110136002)(97736004)(229853001)(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; BN1BFFO11FD053; 1:RMcA5JHoc2vZz4DuU6ZbaI1nRzLkcAmgrkn3rYN2YPkoDX9OsG4Yxv+PPZNb8vndcYEZ2U69DYJ4EJ5koLTJryLASPuXKbi6vzAMYWI9LCFeq9H0Ho2myqrYrvkLqVOqxd890ZjdTDgXGbSiqCqzVO3MQjgO45cvaiLvtpEPHz1X9m5IM1q0tkY6SVXfLR+FkpE61MYhi8Yxpd9nk5UiGbyFRf1NNeU/VA/wy7zVC7EqE57K/NS8eDx1QwCIJqyw4WFuyX9JjPeZjiYx2CEP/C9IzOOpAXx9SLTtLjIx4wdlAHNPk/U3z7GGmoZdT2WrmhCA/rU26X75ninMEyiWifVqJJSLzV3INxk4xWct8bksvVaQUIWw7HmW99E9TcZp88+U1+DjS3AUYuS8fPibAZgxemRxX5oDf7oBR8SMxq3SLM9cqCJPuAfqeql/zkq0FC0y4gTqthPvEfEKy/N540rfv+/DoCmmqhBdhe/CyKk07bC5Ghio75irlQXFhUCnCeb5dOgzSO671U+WM8tnQW1OeiK/zcXbIBLzJqYeFZqr9GR7In9rKNMfHzg2QaOZ1k095BsLLEItYb/fsKoZ9D69/ojjSy4jllSLoX01BtGeZ4KGQTDk1i6k0p0dYpDXDB5WMwUNXRL6eBCG7iDVqj/g5kTRvSFAvZsWkiWNOOssuBR5qA6my7tOQTo7mB9VDedrnkrROgX4sM/qRTUn+SvgsU0OPsHMTGM+sTlgYNE= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: f3b3fd63-0ab5-4052-988d-08d3a3ebd41f X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB578; 2:ypyANxs1kaTqBOpP4qilAnhSP63yFVbAtbZQzTb1xKhFui4y2JZzEZ7SA1kAz511w2rASv4RKnXQjy7QaQFGgGsnFqE/DdHQCGWYMsyzVEUpNDK5wEdyZox4TbBQPO50mRBYbx9fMtLPDBU0i8p6yNu6DeKCTO/c2WRKOsLCW79cW0gGdg+ebYDzRzKxCB+L; 3:7Kj5OmigIJQhuNuWJD5UjtBaHJD+cFdIFHIUxTsYVgQ3Wxg6mXgHyy0+AOWkk3bCuxMU4wlZ0j0SYbFeVB151+eOwIcGJBd9AltfAbrCYdE1a9GwMiobMLroETroDy/n4FFKJqfE8XSnGIfa3n+lbQtcssYOaXhspHdjrsmNg05YcIkLgpEuutVl0EGwr9a3gBz+Crz4ceIuaxpT0Egch8hDcaEORh5P5IVh33ZHZGo=; 25:bMWH/ecU3F1WHMpcH1KRw4FmVPv3lLV7juZlOeFSTyp+Xl4UWGp/MwBfYuzL+igTNDYzsb413mJseqDzXhK0YIlQq9xnKmDuB+5eSouWWUx3MVByYlyt1+DzmZMc6pEURTJPqnH0GzXT5aw7UXW8w3PCYeO5LFLP0wCVyhxzLwrgnECBmx91Ggu9Ol6BwtubOy7PQEhxPmdWxgQF4H4ieq3mwSpEKZiSrmZ7JthzZzH2zBt/fM17WDTu8KQHkdeqccQinHQVjIy24UpbCXh3xwLQMUs4HdMWqXjf4F9RUrrxiu8xwmwfVLlzs3rme5qhhXM4d0iQc1KA9HLGZuss95pqM18CAVj6e9qY7FM3ES0Kx859Ehl2RS8m0bnI3jv3jWu90J08S7DDBDU1Qd52wfw6W5yf8kRjNhRKDJ9DduY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB578; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB578; 31:6fkGUm8IQ90iWLiT/DJgEIVQDvbsOXZvKTn5NhKJW9GFZ+O0+T+TChxufPjMAjVVNdkxmWHgARWURSQFjP0p5bRJCX61UbwciHNykXsNLWwRdoHILuliTFDJP6E9yS2qdmQnP3n2dCD8d3U1g3i1NnKN4oNQIGER6xDmYmfLxb2tpDUdvrj7q1NnILAmVbQPIjEeisIaXCVqb8dGwiWRkA==; 4:E/53o1LuiTxaw71nSyssZcC3i/e4buZok5EGUhqLqSxE+GXgCZ9aGcZRZpWpA2BAvSAZ5DaOcezDOgG6jeGW61hm8EnmM8krr425XWBGq1QHz5BeglX8XABO+vvO2jVgNOC3V0m13i7RtsUmorlw0sDDV15O/9i7huIYyWY+IivpGPp1sZy8WS7uijCnzR4pr4i2sMGt9CqCS1+4wWMmciTuoYPfBKKGY1Z8UThLwEmh5dteWe4X3xypRxvCVENLJ8Djq5BFarJbwBDy7rYpnhA6oTPgzqMivv3efUlik95O6pHrzIwwk9JISMX9IWFAVCtEHQvevcalKdgp0oMJB1jORNdmlgs4BwqyHj4L6TDJylCNvNwM6jvlCbZJXKNGZiM1oTBAduVEg9qHtYGN++6c4TV5eSH7ykay3ATVK37AIF1i7ZBGYKRjanm7csKiSVyJQ9T/rwW+Q4iNYze6pHEW8KipVy9dBkbHMClDJxgFhFCum2Wxc15I+H9uY8ToVjLpqRqUrYC1fVi3c/Vq2w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); 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-Forefront-PRVS: 0993689CD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB578; 23:2VkzPXD1iq6Bj3EsCbi9mWFyDjRhX8cdn5tz0246Pf?= =?us-ascii?Q?qvixUlodoT+AvNLftd7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2ZrV+Yj/W4sHvQCD8HjSmKAP43wtrQZLR9NG0DWxbWRfU2lXqYPRLGF1fvBCfHW1Es SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2016 09:16:05.8514 (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-Mailman-Approved-At: Tue, 05 Jul 2016 00:41:10 +0000 Cc: Peter Chen , tomi.valkeinen@ti.com, jsarha@ti.com, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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. Signed-off-by: Peter Chen --- drivers/gpu/drm/omapdrm/dss/dss-of.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dss-of.c b/drivers/gpu/drm/omapdrm/dss/dss-of.c index bf407b6..1ee6e5e 100644 --- a/drivers/gpu/drm/omapdrm/dss/dss-of.c +++ b/drivers/gpu/drm/omapdrm/dss/dss-of.c @@ -126,15 +126,16 @@ u32 dss_of_port_get_port_number(struct device_node *port) static struct device_node *omapdss_of_get_remote_port(const struct device_node *node) { - struct device_node *np; + struct device_node *np, *np_parent; np = of_parse_phandle(node, "remote-endpoint", 0); if (!np) return NULL; - np = of_get_next_parent(np); + np_parent = of_get_next_parent(np); + of_node_put(np); - return np; + return np_parent; } struct device_node *