Message ID | 1467622190-17442-1-git-send-email-peter.chen@nxp.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | Andy Gross |
Headers | show
Return-Path: <linux-arm-msm-owner@kernel.org> 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 405FD6086B for <patchwork-linux-arm-msm@patchwork.kernel.org>; Mon, 4 Jul 2016 12:32:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31754286F4 for <patchwork-linux-arm-msm@patchwork.kernel.org>; Mon, 4 Jul 2016 12:32:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26008286F9; Mon, 4 Jul 2016 12:32:22 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82045286F8 for <patchwork-linux-arm-msm@patchwork.kernel.org>; Mon, 4 Jul 2016 12:32:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753076AbcGDMcU (ORCPT <rfc822;patchwork-linux-arm-msm@patchwork.kernel.org>); Mon, 4 Jul 2016 08:32:20 -0400 Received: from mail-bn3nam01on0040.outbound.protection.outlook.com ([104.47.33.40]:58408 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753650AbcGDMcL (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Mon, 4 Jul 2016 08:32:11 -0400 X-Greylist: delayed 13250 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 Jul 2016 08:32:11 EDT Received: from BLUPR0301CA0002.namprd03.prod.outlook.com (10.162.113.140) by BL2PR03MB244.namprd03.prod.outlook.com (10.255.231.26) 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 08:57:02 +0000 Received: from BY2FFO11FD017.protection.gbl (2a01:111:f400:7c0c::124) by BLUPR0301CA0002.outlook.office365.com (2a01:111:e400:5259::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.534.14 via Frontend Transport; Mon, 4 Jul 2016 08:57:01 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD017.mail.protection.outlook.com (10.1.14.105) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Mon, 4 Jul 2016 08:57:01 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u648uv9Q008098; Mon, 4 Jul 2016 01:56:58 -0700 From: Peter Chen <peter.chen@nxp.com> To: <airlied@linux.ie>, <robdclark@gmail.com> CC: <dri-devel@lists.freedesktop.org>, <linux-arm-msm@vger.kernel.org>, <freedreno@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>, Peter Chen <peter.chen@nxp.com> Subject: [PATCH v2 1/1] gpu: drm: msm_drv: add missing of_node_put after calling of_parse_phandle Date: Mon, 4 Jul 2016 16:49:50 +0800 Message-ID: <1467622190-17442-1-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131120962214736101; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(8676002)(586003)(5001770100001)(85426001)(2906002)(50466002)(356003)(305945005)(87936001)(81156014)(19580395003)(19580405001)(48376002)(8666005)(6806005)(7846002)(50986999)(81166006)(104016004)(4326007)(97736004)(36756003)(86362001)(68736007)(189998001)(229853001)(5003940100001)(77096005)(11100500001)(105606002)(47776003)(8936002)(33646002)(92566002)(50226002)(31430400001)(106466001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB244; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD017; 1:JNuWtqNjFk4yZTo91gALDJ/ITmvTdtDPscg/Xvwxkciu7cxnErSRGAAnod1op+h1D51HvY0HXo0+Auz9FySvF4aZaUY0be/LI0AWDET3aRZx7sokBDcbjlVA/jN5UjrglJGjD3d9MRBp0Bk80HmE/kWjD4V1rzYvFpmgWznfEeYdEzywPDFXrInFwToOtJmVJDbAckCqT6a+JAWfIPZEGjfqOahKmemvhrnXzDFBCwOlNpJYfetwrc404V+IiGfKNJYXvdVAAQBvaeo+Wxy345zn/CfCSsXUxWMPV4aXJys674zVppNciXsIeLIvwv5I0faFNBFZ1ZUw4U4K2WhlO4AJO04Ipsn9G6bdob/ne6VGw7Vq8xzIeGkL9WiyDAgM9EUXWbzcDP9omLDMdcqO75CIq3MR6aBJw6fNL+ybwNqUEnckY4U81iWg25+fZQ4Lu/qlYKxXHH3BQDwU9hfABfGf0vn4gxcK/+c1sL1WgPUXm0x73c+sgdu5SxggQEz56twHGyv9TWr7N9sQABPsS8kN4V2l6VF9Xke/DUVPABcisW5whr3zoe55pmKBli6fFRUZCRVT3kE7GvjyepdXKujZvgi8iJksYmUV0qjrzOrhXCgh7lAE55UUgps+c+qhFXEQ4nXivtY0zx633pPWhImSFHMrhFihy4Gfb1f8yoZocIHze6V96mlNwZ+I3a4IY0FsUpxkuOXth/jnYZAPxC9Q9loUTNuWP4v4Zsf3l6M= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 670ffdca-0b23-4230-b0e5-08d3a3e929e1 X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB244; 2:gRVvn8VZGjn4H2QRDpAyPD7el646rSYnLii18/DcTxzBhhDvnv2Ex/Feso1jmrXghuHcqVgCasZctMaKQP6SImZ9s+709ctwsrL2tiLHS/tLJWTOXGVWSq9dY2PKK7ibDF8t5v4raJOVAQyWHwsdWnFK8Jqg6k0Wx5FF0ZOAqH3S/9vJ+viYrcrI7HnkaVYT; 3:wm/+ibP0evWaaJ03xO8geiMUvgUVVdC6a1HEIszDOvdFxSLl1pF3SC3VMDCpSgCRjpT4MY1GEHL1WMT7He1XcNiYRrxwnUXQIZZDCoYk8gJXKUnP05foi6Dd/M47j41Xu7AwpVMq0xUiLZHef9z0kyElwu7bdzic8CxJFLqWG3e/D9zPXBTgwpbDCMjchfBezAdnAcJZIHKuyZFB+Fg+QQUZYWS03mgrQPNBPHYsfgs=; 25:Ctiks+h3vu4/D/wg/sp6LWidzhiIrLge3+yd3LiDwg0iIuPr5sBMLMEyJAddbmWNa1vLlCPtlvw6u90ggeEQCgjJqsB73a6A+cg+u2MWkZ/op7aDAc8EMo3W0UnYnc3C2KJ/W1gEphgVYGGGNKCv4cv9tpuMGtkaU6ogd1UwgdBERET1Ujt5yggx9od6BBOyrvF00hGiGzOUZjT0fdF4jIdnrqoBf1MtxWQWRXqF3H0oBFBe56e0kK1LjJBWM6mIZm77MOm3WgqTx3tKSGwFpej2FDz0sRXCMjjeSw1a5ToSmUFg4nRH6bBvOehho/6Vu4Tm9MZiJOJskjmsCFX5G7/oqceheblEjhheET5yMKfZ+4A3+TQjDHPltCcvpNT9VDdT4enm8oBppZYhcZS3MEh9IRIvaX1PgIZz7ea1sr8= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB244; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB244; 31:PHTOTB7u6ODBWU7fLqXSqAWOwC4qH08LFi8CD0PhL/w+0jFDjhBMPhU8IrrIJ4eyKl4jpFsKxivhwHFnxmQUT4tfq7bMOcJiV5tbjriSrtJd+6av3f/B4TxS1U3qM3DB83oBWXo78skfI9AJsOU/HpDzvz/KQUn0KFEk8dURc+E3vxYackwXWP5WcXIPrHw/N9OAc3Ud8RjFjtlAE6Ws5Q==; 4:+B9VxTXIhdedBhNLaIIcz/aYyuJYEf1m3GhdpRbPuTrIUTdpXdVl9EUaHOJGLMP4+Jt6F0Kcn/Ij/54xdCqTsH0dzxFnQTJx1NDUEZBMlNsfGnq6S6Ov9xRkJJKMH/iEEfVLUWlkrUyvfCGc/HWe280zJ5gn85cWysJvTmJCgKK5e8QdVJtqDlk6SoKi8ukJpu4O+QtNowua7ZLKzeDIoMUhC+VtEcvWILtKDoR0FXTsXKlqskOIgF/NuWnAUQFhFXZAiWv77YO1i0qQkcOeE9bc6EFcjs8fZwbtkfEmXLpd2nCGwriBOyOHFzAGrx7Esa3Ssd8l2nj7YshzTJnBch6VBxhEnmuPIJc23N4gi9lsH6rXQd+JnXarmYC/OZszmSQy6z1UgNaw2ihB5KDZokAslsh6enUPrkjP2i8h3r9p/KXu5mg3UFEdB8JH/PF+We0fBYH2BHlmw7tUzscry1CGT135XwmjFuiJiadNhSMrBS/aELkqm61etU0dfXwlcWvZWkWI69diu4NRoJ5sOg== X-Microsoft-Antispam-PRVS: <BL2PR03MB2446196F3D3AF565CBA891C8B380@BL2PR03MB244.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13017025)(13015025)(13024025)(13018025)(5005006)(13023025)(3002001)(10201501046)(6055026); SRVR:BL2PR03MB244; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB244; X-Forefront-PRVS: 0993689CD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB244; 23:qKP1JrCxzIgx+gBOh994bLjQKj6xIKQhh4hc/YUxOK?= =?us-ascii?Q?+4n4E+Ax+/P2oIFSTj9XTksmkgn46WiEFyzNoPbuohGMdWbVSLawSIadr9xg?= =?us-ascii?Q?xLaLrTEcp3tQFUp3I/9WhS559m3OvoLEFunQAaAHoVE2HqUACdaPrZjY8X77?= =?us-ascii?Q?XZd2QNfuRrkH1P2080oED30xdyGVir7mzI8UCASTs2VyMKHYgFHfInuz/A/J?= =?us-ascii?Q?IzQMVqSHPwTISYZZMLMqX8P2OhzLU4t+uKBZDAm80/F12luk9AnCkxcbLDuZ?= =?us-ascii?Q?c+LNEdBpkVBzwwTysTSiXm47+rLOj45ZKn8U1j0tp5P3teISVTd2ccinrbh/?= =?us-ascii?Q?Wh/CN5chRoUzbOkyayYV/844ZJjnrIk76aOhxkcnRCUijeXFurMCLNzU//KD?= =?us-ascii?Q?o4A+SXBb2gfoudC9nDuj4WSRqoKVVHG55I/LHU3T0VszqeWKFWF3t9nJqoUA?= =?us-ascii?Q?uOBVeL5qoQYN3srMgTHlYA/qaRD858hHkmlyTZDsgqFf1nfpoPLC//PCyvxA?= =?us-ascii?Q?gNdiqJvyrImwRC53/fTf9oOm3Wslovj2T5orIBR3ACTVjrUqdOrybJvNNWaW?= =?us-ascii?Q?NxqLt7JKnP+2/MQX8AGeDMw8bhAFR32NgiRDz5ef7I76UlcLCbyzxdczGAom?= =?us-ascii?Q?xAMn7lmoEfJoDz6acC+/OghSc5Kxd4J1qdsuftNnSgr1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 24:2DPXhmng7zEpZpf3OoWOGAuPrcaZjXKJko8wioebN4U0KigCAUrIVmBDoH/9N3oD5JGQ7ISWaCjJNMWPprVaj4ecNHrmL1RN31WV6xffnRA=; 7:d9CFWnPZ2IROqGTAD/G3Fbr4yi4pcpnVQvJtmuGJwiWdOqNDtmRqGNzlmrsRsS2uwzgeUaJx/CZMYdDjnWQp0rwu9JfQm3Fqp4sSP4eoAb6dZ1BsdDRgY/90lUgbsyXnv+uF4rW/p6308EEu1gdVwkIYHHUw+97XnHfGO8Blnx6Q/iZ3cUj6nUkGMyR/b9jltL61Ya7b+qes6/2m7lVm/3e8TQOeAfdVGjLknXbu0PeGyVDdwwG+RDKsALIdj3rR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2016 08:57:01.2708 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB244 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 9c65409..46c6037 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -284,6 +284,7 @@ static int msm_init_vram(struct drm_device *dev) if (node) { struct resource r; ret = of_address_to_resource(node, 0, &r); + of_node_put(node); if (ret) return ret; size = r.end - r.start; @@ -819,6 +820,7 @@ static int add_components(struct device *dev, struct component_match **matchptr, break; component_match_add(dev, matchptr, compare_of, node); + of_node_put(node); } return 0;
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 <peter.chen@nxp.com> --- Changes for v2: - There are two missings in the code, handle it both in one patch drivers/gpu/drm/msm/msm_drv.c | 2 ++ 1 file changed, 2 insertions(+)