Message ID | 20170207141530.12979-3-laurentiu.tudor@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 A04D460547 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 14:16:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9148428435 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 14:16:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83F212843A; Tue, 7 Feb 2017 14:16:30 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00 autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4629D28438 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 14:16:29 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cb6Z5-00030u-Gv; Tue, 07 Feb 2017 14:16:15 +0000 Received: from mail-bl2nam02on0053.outbound.protection.outlook.com ([104.47.38.53] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cb6Yn-0002XC-Sn for linux-arm-kernel@lists.infradead.org; Tue, 07 Feb 2017 14:16:01 +0000 Received: from DM5PR03CA0016.namprd03.prod.outlook.com (10.175.104.26) by CY1PR0301MB0729.namprd03.prod.outlook.com (10.160.159.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Tue, 7 Feb 2017 14:15:35 +0000 Received: from BL2FFO11OLC016.protection.gbl (2a01:111:f400:7c09::142) by DM5PR03CA0016.outlook.office365.com (2603:10b6:3:118::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Tue, 7 Feb 2017 14:15:35 +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 BL2FFO11OLC016.mail.protection.outlook.com (10.173.160.82) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.888.7 via Frontend Transport; Tue, 7 Feb 2017 14:15:35 +0000 Received: from rhuath.am.freescale.net (rhuath.am.freescale.net [10.81.117.102]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v17EFXHX023812; Tue, 7 Feb 2017 07:15:34 -0700 From: <laurentiu.tudor@nxp.com> To: <gregkh@linuxfoundation.org> Subject: [PATCH 02/10] staging: fsl-mc: fix device ref counting Date: Tue, 7 Feb 2017 08:15:22 -0600 Message-ID: <20170207141530.12979-3-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170207141530.12979-1-laurentiu.tudor@nxp.com> References: <20170207141530.12979-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131309505354627871; (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)(336005)(7916002)(39410400002)(39850400002)(39450400003)(39840400002)(39860400002)(39400400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(86152003)(86362001)(54906002)(50986999)(7416002)(8656002)(53936002)(77096006)(33646002)(626004)(81156014)(8936002)(76176999)(8676002)(50226002)(110136004)(5003940100001)(81166006)(1076002)(305945005)(356003)(104016004)(47776003)(2950100002)(6916009)(6666003)(2906002)(105606002)(106466001)(38730400002)(189998001)(2876002)(92566002)(4326007)(68736007)(2351001)(97736004)(48376002)(85426001)(50466002)(36756003)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0729; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC016; 1:QyMAsAZXbpjHcF4n3w2GaJFWpUPrdMgOM6vwEPr3gEQx6GKVCS1BJUXpDfI9SsYVGsB/omy6wT24mZVULlrLefEflx5LzaJbGYJNDbVzbx2oe0BjAn4V0mP8AvP5MI1KFF9vKEMlD18mLBqS1fjJuis6yP49Qa6ptfDOl7aL+DA+MtDEa35Nlenv45lKlO38VmDTGNyZrtMXrQes2rOHPdSX/dKhYk05pDnXgoF1t4fYLAEdZ7R4czdexOKUH0pStRAdwpxf8VG9IqBdTLXRli085ZKAsLGzkl7YAAW3W57PzHHswNj16ABkn+dIA3JXY7z2IgYQFmEYy7/h8FD1N0T/zLIBLPba549HhHrYkeQ07qSKZTPswoVKIdowsTfZ2iawBCydBF2tXZ62thnJIjniOLobvGSa1UszdV4Ww5QJW+gU1AgIm8LMOoBB4GlTDKvmCWs6IUUV4MCGM1mJKiEnqNxbnQ73ddzFQfOUAo6Vp8MhiPiJi8SGLU/Fs4DoijCMZyxuvNlwxrrTYZIxYlbSGsa1O1ieTZxBRLDlfsGRkuJatP4d85g+cu/VCezqfNKk7TzxbrTpH+/H0DnVK8lNxkLxjVYoIS68qY+5ghYnzCfnZwLtCjVJcBGSFkK2uxHSYdhO1jZDymF5GHdEhEPfcEdJ5vQya6UWflgOMselLeVLpQwgYvZtPLtaUGlu5A2ZGUqTvfZZ/yd2vpswK2e7guo1rBpEMyrzr9pczP6GhJgX0z7VfXWPHApbn3ggGtAbkX8ldi47OQUAX3peKg== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 0f7ec2df-a8e3-4a75-7b1f-08d44f63c8c2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0301MB0729; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 3:xy1Ty0iCr4CKthklFSw97t03miNQhxQGMCDbBojFdnnfVWDKXwHIZge38PEzIc0LAo26octuxLua283l9Zyi+R0QKKowLJuoGf43TA+ZztS+9N7S5Zunqkl3KR4N1bDEfEowcfTx1Da+VZxuzz21GhYXworoe5BhzHqbaZkvmEfTIh5PUXGSAbQ4Phy2hLPHIBLW9Ge+eD3l7F7oq+K3bFEnhZrd2FekYHYtZtrawBIu4Z9gYvU4l8YOpwpoKAAAyJL12YqLIUY5fgqxSJou7UjPQpYtxIqp8spesVP+Js/+IHCEI0wy7EoT12bb/iQbsFAYpbTTJ7uRurMoo+dSNDZyZXZ92dQSkXNADwBPaYKZDhyshfBcv5QP8Q+kImb6; 25:gxmjtfEuGQQ8Yq2n/WICoGlU//qG6OOBYQ2Ksop2ayBHqYTOU5ihV9MCN/Y00LYHtACqbNEcLjp0YPj0DQ8eTUDTz0i/arVDFpjrfUV/O2FYc07rHbi6MZZV875/gLX/QNbyHeQKXV3YW6d0cnU9f69bquWACZ90tiFohLX24HwGujpL67HjmGr2uOOrjTdK+IP3+j9hf8YpbDmFkxr9XzrghWQzweLjH0xQ/Wt0raOhh2TE5Km7WJUbzpLdQ+6Y9i90j+/FfJuxZCN42VUsxNPeT7gYty/CVDZCgtw66DnW1qzyNZdNmWQ5aG0iLAf856FZ8Xgp59ALvBrPj58QqF/AXZS0umGziKRCxO5lQvAepktqEeXbEiqiP7nU/1DljJFVDNzNKWMjjZxmgWji2uPSI5cjdqFfRNqTUsSEKxMn69IuDvilIBEqUQVURJN8 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 31:fGpLH/uZ148uQ8zf+H8oqh18cT0/YPP1eSPxyPfD2h7hoimVDvEQdJGc/65Vj+8hsqCS8YDqZSGFQABL3HCuY/RGSSJwFUnqBOJW9o/gyV6+Jp4KMO3ZzwnQIclgk/aTYR2YNOT6GksSmf1FpaS8TzDXIUOxV+9AYvs6d+vPv6zTF12ZSFVja8pc0eGpW+EqnbSpuIIuOic2CLdgwZsymRso+cfFJ+e+QsXvHpN5UrUYnbA8TQyqBPzMQYeCDLbIUqekDdyzs4GDLsduZfySfC+WGmmO445YqecUIw3BZJ8= X-Microsoft-Antispam-PRVS: <CY1PR0301MB072975D962114980C8479AF7EC430@CY1PR0301MB0729.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(2017020603029)(13023025)(13024025)(8121501046)(13017025)(13018025)(13015025)(20170203043)(5005006)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123565025)(20161123559025)(20161123556025)(20161123561025); SRVR:CY1PR0301MB0729; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0729; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 4:vEexPJURnQUs8sW3PMUYX20ggUUYfXuqhqlfCUqweGjefjHycC5dKrXlLM6HuYcGk8vmeOColJLfYjG2JOuYjjP/c92/BpK5C9x4aNIK60ZFGr9S9V8xzAp3jygi6tXvD+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DiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 7:40lapecY7jjJqHDn6sFK8p9C1NQA1pOBcJB8F7LJWtQ4Ordh29sZC+1eb96Im0ebr5kKXAQkW27lDf8lcufc16RYgr75BJgrWvmYIRrg4XaAmuKBSH/9IlJJKt/0cNRHs5vWGjk0YwXUSehEI12JPdQ1dljVao0k3YB+afDEWwItWplD6uEjYwn2HcKKys4+yWEPQCj3iPi8S68nOuXbWJcpZqjl2yGzhG01NDJcLOmeonno4aO5CvxUv3aCPXSNbb7rxz0B7z7uZyz6BYkZTzQJTwXkXckrHIoFfY+1kBNcrVNYY/9FCvdQYsugecBPfAC+8qXl8J32zBTTFxUlgb8uLnTm6lKmFjAk345mjJBLifls07h/UUlzH62NBdtCoQGysZR0ekZJoSanRjLDs0V2ocrwhCfGWZSBWq0DXeheaNBoLfaM6i6+WgqNnXTmJmtVd77JAgS3lMbZUpTY6g4ecwXAPpH/PtvpgzV+n0H6ErS9eATLQtX1uAsd3FnmyTWEDvjF/89TjkwoOD+/VA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2017 14:15:35.2755 (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: CY1PR0301MB0729 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170207_061558_113752_2346129F X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devel@driverdev.osuosl.org, arnd@arndb.de, ruxandra.radulescu@nxp.com, roy.pledge@nxp.com, linux-kernel@vger.kernel.org, agraf@suse.de, catalin.horghidan@nxp.com, linux-arm-kernel@lists.infradead.org, ioana.ciornei@nxp.com, leoyang.li@nxp.com, bharat.bhushan@nxp.com, stuart.yoder@nxp.com, Laurentiu Tudor <laurentiu.tudor@nxp.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index 4e416d8..e4b0341 100644 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c @@ -188,6 +188,7 @@ static void dprc_add_new_devices(struct fsl_mc_device *mc_bus_dev, child_dev = fsl_mc_device_lookup(obj_desc, mc_bus_dev); if (child_dev) { check_plugged_state_change(child_dev, obj_desc); + put_device(&child_dev->dev); continue; } diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index cc20dc4..7c6a43b 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -537,7 +537,6 @@ int fsl_mc_device_add(struct dprc_obj_desc *obj_desc, goto error_cleanup_dev; } - (void)get_device(&mc_dev->dev); dev_dbg(parent_dev, "added %s\n", dev_name(&mc_dev->dev)); *new_mc_dev = mc_dev;