From patchwork Mon Jul 4 08:44:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9212031 X-Patchwork-Delegate: agross@codeaurora.org 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 E88946048B for ; Mon, 4 Jul 2016 09:06:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D76DB28603 for ; Mon, 4 Jul 2016 09:06:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC44D2860A; Mon, 4 Jul 2016 09:06:00 +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 46F8828603 for ; Mon, 4 Jul 2016 09:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932722AbcGDJFk (ORCPT ); Mon, 4 Jul 2016 05:05:40 -0400 Received: from mail-by2nam03on0086.outbound.protection.outlook.com ([104.47.42.86]:63198 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932472AbcGDJFf (ORCPT ); Mon, 4 Jul 2016 05:05:35 -0400 X-Greylist: delayed 511 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 Jul 2016 05:05:35 EDT Received: from BN3PR0301CA0079.namprd03.prod.outlook.com (10.160.152.175) by DM2PR03MB590.namprd03.prod.outlook.com (10.141.85.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.517.8; Mon, 4 Jul 2016 08:51:20 +0000 Received: from BL2FFO11FD036.protection.gbl (2a01:111:f400:7c09::199) by BN3PR0301CA0079.outlook.office365.com (2a01:111:e400:401e::47) 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 08:51:20 +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 BL2FFO11FD036.mail.protection.outlook.com (10.173.161.132) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Mon, 4 Jul 2016 08:51:19 +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 u648pFP8007964; Mon, 4 Jul 2016 01:51:16 -0700 From: Peter Chen To: , CC: , , , , Peter Chen Subject: [PATCH 1/1] gpu: drm: msm_drv: add missing of_node_put after calling of_parse_phandle Date: Mon, 4 Jul 2016 16:44:08 +0800 Message-ID: <1467621848-12797-1-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131120958797267860; (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)(1110001)(1109001)(339900001)(199003)(189002)(92566002)(68736007)(2906002)(8666005)(7846002)(11100500001)(36756003)(50226002)(50466002)(48376002)(8936002)(77096005)(4326007)(305945005)(81156014)(33646002)(86362001)(50986999)(97736004)(87936001)(5003940100001)(586003)(19580405001)(47776003)(19580395003)(8676002)(356003)(81166006)(229853001)(105606002)(6806005)(106466001)(5001770100001)(104016004)(189998001)(85426001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR03MB590; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; CAT:NONE; LANG:en; CAT:NONE; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD036; 1:JWOuJH9QD0CD/opnhyF/do7GzPQYHN8kaxwa4bwpHMfluPVn84Af70kLI7sKH3iaCPflI0v95nqB7u+bO3sSMbhLSHKAA6bazQFpC4Zy0AF0LI/Fg43DaZm9L7GFv4VX7KPbWV65+xR2SdJboq1jxt60800PnTFDSsc05x26wdbJvhmac9Y3JgbXzDj8Mo0J/MvXmYCUiDej29OsTQRRltmvYqUYoHwKjRVh457c3uq3Dp5oUBW4EqjJ+YBie8SY0RD/dRiIIALLH43o5Za2WcK1QiaGjSwK+gz+l7VSgBqnc4HsNt8w8W3enoU5OuMv8W2MfAvBV3mmyT2yhU2lsl62AinNuEuTUWPwxxTdjVmS2xtXLUfuBT/kAw4Z9VnClJQzBoPaRZCLni5Wqz6Sm7FhROmCgL6i7xSamqpheyd7ws0MMsSJ/MWRGT/ps3FPqVBKQ59gGSa61kPRHjA9wZzNoQVAAXswE7BdhVh/Kqsi4eLxox3C53s3G8erDJdht039LvzYedFhkZVelQpi7Bs6zrM7K/czSRkzwMRQx804wPWc1KxNcW/U8WP06Yx+UJZCBpmcEyHkbLcPhcITjRla/y0vC2fmTe5YYy2bkSkG13APGD3NhCZmS0QJmUMoQ6FiGZv66Dyda2NXGnLGXHdnaB2zDl08kPf006glVqqiItQg1MyMCsiIdJRxCkZc+cQDLr8cZaqK87cpnij3uT38ojGVQnjCuk7zeoVO9H8= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: f3a1aa9b-2fb3-4de1-e232-08d3a3e85e2c X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB590; 2:Jvb2R0ZS186asecKlFe4oA0CCRF0g7htmPLbR8lDSkCX+WHfIVaTF3omo5oYlCzq3cY3ZvHe6g9gynsolZsZlLrIWM9BYqsF+zDF66LOUB0Ae9ze+YwKTKosZ7jX00HM6Ht3SRRzhfcQz602508clUg0J0GNShJU+YY5UnJp9Zj20rOGhaUIvQJ5KC6DWthS; 3:+9x8deobtt4uvl0bWULUFVI38WTUcnsO/ojiCHZ72CWUuEdHvmhqhL2MwZr30t5WqkyG2m2VJIPgpy4kSUwbSUko39Vfqcg5klv94nksBoZXUUbPgFJgWl05DfNYDJt/1EKHjssR6xPU2QgBgAusUwNItxmO8O1n/BH+9DyKu92cSyrj4nnVRGYessW7224rKYEitcMJ91ivPeHUdkYJ4MLehWbf8mL0VDTjTAhbRWg=; 25:Qiy5RotzAjx0cAsYZdfNeeuVhe2ZqYR9GDoeKgItInxdvK0/Udvq4Xdjwdl8WfxjJB5yeRNlse5kpKO5usKlU7Uuj1+YU769+18nlNNc88+kMb98mCsxl1QR2/F58WSEb2xGgWj532PWwa+2irHG6bpaDiv8IUC4Xit0/gceUAZYaRi8sOTwzP+LM0EG+TbVRGh4NVVYkbpqgwSGlKFjc1W0Nu2oSsTKZ4OA+WC5zhWmEXtPdWiktXnbF4mPOe9aWKGeOjoXCmx8ytoVKd3lQY+mkYDl86SDNSKPX0n7SOVbPtn7UE9mUbXKPkuvZHHTK+/ToRBOU6RRW5jbRHzoDM/v1Abh8fcosVMyItJbfICkCpSld3jkYyMo8nr5Txpk0rdQg7FBqOv5qSo1AYwJOzIByj5DfYALY6nItUnmlkg= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB590; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13015025)(8121501046)(13018025)(13024025)(13023025)(13017025)(3002001)(10201501046)(6055026); SRVR:DM2PR03MB590; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR03MB590; X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB590; 4:XZBCG152O8q6UowATPKDum1sCgkVCYdhStAkD4pY413tFbtErX3jqAuXqG4De8JmIgMX9QPxfjYx+oNqNJgppL6y2pOuG79xrJiVM/hFUjdQ/0dz5b9H8D4iPmEjwSi4rjppBQo0azoJ0P4IKmuBUiGmCQrlH/fP35MitFMZt6Y17VJ2pZftsl3DRITP3R57DY5U4niTJA6Rg8LYecSzk6rPlFd8LsYSx9jF8IxENBGp+OMoI7/u6GRdOoOrNpW3edmiGHLTQvpStn/xkFpcwPowON6VaOvNH9zjlKtGzVgIercwF+FEWLIpx5OkjmmNMrLddrSxZtXp9I15kfDG3oMVrME7dnx5Z2F1cHVSYr7DAKcmcxWNAzQfngm2skH0vxCLSkJlbnQBm2h6Bl1MoOkDvDos+6mvs64msSiArbmCsPz+Fdg26yPLI2KzZt3Cl6ZUs5DkPT1fLKlRk73vvG8xvqOxYhAeBqfy7Bs/1VFcxWfWBsppjxT4L4DPLMzB3e9WHE15iIeiQNPu/kQavA== X-Forefront-PRVS: 0993689CD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR03MB590; 23:sHEyOlQ0k7kyCzsIw+QTrjUn4kQgcri5xEyU+aLOe/?= =?us-ascii?Q?D7OiCFD3h2W79i28CMcaJQP+7KAbcHKPrzqHTttoNdR/9iygVk4bnszVi7qn?= =?us-ascii?Q?e0ZSs9V+EkcV1dLrOjnY/VaZuS8tvw43/KSP9J8o0MyY+4PHuMhJozkrT8t1?= =?us-ascii?Q?J01bGPyXaJdZ4uSsL9AD7i1KATAAHNQFAI/VHCSRrGbOwx6n5P9JVC+V0k0L?= =?us-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LX8h294wDzlxWuhnfu?= =?us-ascii?Q?/h25zxAEFuztGrY43daQVeqGvdzAT4?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB590; 6:E7qWpkJwvKcxGZQ44mLYDQa/Pgk9QikJl+hjaZcirxDeHDOeVspG5iGrK6ieWctebS/JlJHytrSzP+OvAI8Bxpu/NLRPro1AeZKxBQsZETTKfev8m4IyUhYoncApFL29BilWmMbG/NBp2/L5EEjk3Q6vylo+6qUdZnaeJN+ff0NHkKsNeMIF2cFXgIG+f42eTjoWtqxPk1eYRYtpscnltrksmtglbh7q+UD+rNCGC1e3qNv7r07ObNpfKxiWdhGhLZz1Qiu6mnbJG6cgquEPPsVmfS3CF3IxVeRY4I07PSqV9wmBhhZ7TYoTtCP3KTph; 5:FxkFSugmUBhvjyZ40avO0lHYPvjHQR9UuEnaltCTFsRyA7kUtgh2J2idaoxqu9AGyutMgPth6MZGAoa4orz/oXDL++ZZ2eKYhW/AFSZf++YgN0QbwPGsO1TMTjgJe5wrm9Jepx8oedmzplF86vMr6KROz66tgz7b1X3XO8rchKk=; 24:+apjtTGcWe1wNVDt+3G5WfkyBNDn7+Eh5UgKpk0VdFihaPUXJaKqdfNbh6Tn0Sgzcrv3vxM4lyuPSIQBDSpYx55IQXN43qFWO2ivetpGz94=; 7:IVemXDPwt5SJI79BAjr00C6alt1XCCsznK7Ke3uLVBSCfyUWpK6TiZpE8+QTN4qSwHRRnw6zNQZKV1c4y8d2GvQPK3zpM0DZk0Mk6QDjCYFIVzhKT/VH7bG5tvSh18k10NeAXP/Pi/iKWLCUNbw5oTbxG7VctVxx8StUWguNefBNtuLyRRyHelWdipaLQUy8tNvBFJOsU1vUr7DxcTSjIop7Siq6pw2EIk3Rkds8wm4LUhh5peNQoqUwjVQROSe+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2016 08:51:19.5395 (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: DM2PR03MB590 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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. Signed-off-by: Peter Chen --- drivers/gpu/drm/msm/msm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 9c65409..d9ba6c4 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;