Message ID | 20170207154353.20691-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 034EE6047A for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 15:46:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E664B27317 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 15:46:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAA4628434; Tue, 7 Feb 2017 15:46:17 +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 6710F27317 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 15:46:17 +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 1cb7y3-0008Cj-Om; Tue, 07 Feb 2017 15:46:07 +0000 Received: from mail-cys01nam02on0043.outbound.protection.outlook.com ([104.47.37.43] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cb7wm-0005D6-Sj for linux-arm-kernel@lists.infradead.org; Tue, 07 Feb 2017 15:44:52 +0000 Received: from CY1PR03CA0030.namprd03.prod.outlook.com (10.174.128.40) by DM2PR0301MB0733.namprd03.prod.outlook.com (10.160.97.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Tue, 7 Feb 2017 15:44:08 +0000 Received: from BN1AFFO11FD011.protection.gbl (2a01:111:f400:7c10::184) by CY1PR03CA0030.outlook.office365.com (2603:10b6:600::40) 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 15:44:08 +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 BN1AFFO11FD011.mail.protection.outlook.com (10.58.52.71) 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 15:44:07 +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 v17Fi5WE029897; Tue, 7 Feb 2017 08:44:07 -0700 From: <laurentiu.tudor@nxp.com> To: <gregkh@linuxfoundation.org> Subject: [PATCH v3 02/10] staging: fsl-mc: fix device ref counting Date: Tue, 7 Feb 2017 09:43:45 -0600 Message-ID: <20170207154353.20691-3-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170207154353.20691-1-laurentiu.tudor@nxp.com> References: <20170207154353.20691-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131309558480548774; (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)(336005)(39400400002)(39860400002)(39450400003)(39380400002)(39410400002)(39840400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(6916009)(48376002)(5003940100001)(8656002)(81156014)(86152003)(8936002)(92566002)(81166006)(189998001)(50466002)(54906002)(8676002)(50226002)(97736004)(47776003)(77096006)(105606002)(106466001)(2351001)(33646002)(104016004)(2876002)(2906002)(5660300001)(4326007)(86362001)(68736007)(38730400002)(36756003)(356003)(626004)(305945005)(6666003)(110136004)(85426001)(53936002)(7416002)(2950100002)(1076002)(76176999)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0733; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD011; 1:22TpX/PZUmnJIG9ZRidGG9UEOjd7NAwnVwkSeXYEuQeB8p5GU/WDk6w5QB+C+K3jg94XAMiTHzUE+lytvXFSw/sNP+lPenCn+w3MNsFpshrXZgNvc+qPwqaa4SVmSnb1iK6N0MonYyTGzTfG7deSxMcBoUbvgB4JdmCV7nfdRohdzjleztJYm7yT+klMI16SFG2hWVC//gHj8ug5x+3Ddk87zStIyZK6OnVNiYbjzLh2g/+CkIqfDRfnVnrFz0sZ5s0WIMQeL7fC4+oY5mS0W/EMoZuS1ddPjCNL4LqAm1ZY8BRlneAYKtaE7hvr35IpvVATLpsg5xnRw6MWIlEdIo+wgrlSS639vlEkTOhVMk6Xub9wpSx/Cx5ltF0vPhkUUl3J8m4Oe0tJfvSTppnW/N11+b7UGuvMABHslTBQMfv2W9ER2pMhVJ8RXez2vwh6OJVZjHE6myAvVWFPnpakQ7mOqfv8J6uDz+nXVtibEbK3msWaNujS+2CipONkLLxaqw6afON3aYiGeJ60gNabXJdsQAxH8oZ0ho/HVGZL1RAJBFLPYOyWp2BCOdPX7t+EO/z6MCp7drw3Z984AkszpN9C8k5VzOoYOp6plVv5SrMi/75PhT+81V0hwVMQ5FkJfhb34uajAzQY4PdwBvb9YfyRklArPb8SAzOeTQ5daVe2gMayXdCer25LvUDO47cErAVTIW0M7MJo0TUYho46fOcVxof88La2Iu6SlsHtHHcPW+Z2L4CYYyfSEWl01J7QFpLcdBQCSN3BB94O4a4mIg== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: ff420906-ad87-4078-a89e-08d44f70273c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DM2PR0301MB0733; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0733; 3:ip5jHLk98rTdUOpC08SrqUERiRUe9g+eXCJu6deuY3DtR6H95lfb/6nLCLYmksY5QJMNxGEEmjXnODItIRKNueOPjVz0zuFKINwjs5RXMbZgmGYgoQQMyFu9PrsKb2vD6ImxJCZDulXmGHiC0wYzh9Hb2wP4klXACqPw+KfeXNKItOhutXhpIIcz4g/nXu7BSTw13BRzAxEUpJDCHRUQIH8DmWM/8PejmU/yA1km7sb8NodfsYXt1EVn3XeGlGrKlWKAD3jrKVFgEWauEJJQWSiKZfjRtM70I/AMoYxNbenHi25kXuirk8tdgc52p4LDP4WhgKiIEDkbUlwf5IKL3wgEnVkvcEQzufJ6UgqqiSLexmUiiwrUtH2hKY+KFpPZ; 25:c6mXFU2JHxz43OnXfu+7VOHOMYUtz2KouhsdgZmBEoQerI+PtlutBk4A6oLxexgOtSl+Gk9mYyYIRXf3bU4VcE/0SVbLVTNaySZ0jwov4a4OiSZ+JIjuWx3c3sBupGv93WOGM31rzdQvSqeJWTobIVT7mzbXMw+23WeZlBojbzqBS4CEARjNiVLpZZOHij6JCQyEV+OIamyGIURyKD2MXpyL19ewV1f5AHfekvSUYZdP1r2wE6WqBXV6tLFTm/Oo7jwR4Ov8j9xFQVg2W/X7M1tzp+APKndotpF+8lCAG8IHHo6OxrfrJiVWzEmSTU+Ek44TK13aqdRPfI/C/DhzNLn0zrJe32ustTpvxj8Jttj1JmmLz4u80sGmTq3/L4VAFEoYEqGEhbqqwaKvg6NN2PFyA+jDl9fxQ/wOxGk/QFX1HxXFHAD0vjvzVSjPxCtTzWLGsj0NROQcgWW4vWHJsg== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0733; 31:/JAYs49S8nhUj5LWRBcm6cVa7nD8ZnenTGshAvWCyCzNXY4SORYHdWIUXg12jiFz4T2xnSdoOUp/DZklvhuk1gXrIa0wOz/yRRbMVVAwcTdFfQQTkTdBErxzBnlitYFX7aebzKKoMBqyK2pdodl9RoGU9T31lFTxrHZ1cGzTqm89aGhBql+ceih+pdulGKr948ETr82m9RHEmfTzrfwaWxn/qBoj3fq9AxK2mP4O4MHqRJn7xiI4MI9DzcR7sgeeWcDpei4/F0L2EseH3UjKWw== X-Microsoft-Antispam-PRVS: <DM2PR0301MB07331BE2FAE7A780DD2401DFEC430@DM2PR0301MB0733.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)(13023025)(13024025)(20170203043)(13018025)(13017025)(2017020603029)(13015025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123563025)(20161123565025)(20161123556025); SRVR:DM2PR0301MB0733; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0733; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0733; 4:1HTr3uyXSuFKGqRCGDQTXQNBQmXsdUP7fAykEfssK94ICH1pke5ulejOOqvSqYm3yoNVgJaPQcKidxPqY4WaeiaIiE/l0KIi17X8iwRQulZvaVroqVpwiCDzVeDKpMVkrjiObEFti3FSPjjuf8js1wJhOhE0H3POC5LVuGspJxd9nsqa5xZl2wzeRs7HoZShg/Hmy2et98o2Me726kN+8DBsgN+MhWX4HFx71X0N5I/YBsAzVfUBSsnWM1CGmPNNKF0p4ueUJUD6KZO3o0T7mE4tTY4wUr7yl6bxp4Zk3oD+dBhIAefBwQOYE4RwDfUzmbTYJS1sxJVhNKox4J9GYVazztDKpk4Tq3NLpOpcEosQftE3x+uC5KxrbN/Nquns8hYWttBXeDnZBab4ZSznd34r52TisEi5vn/sHlpHlS64nvq7Zc7BEx/qyySceFU6cyCxmJFqUx7QktsRBoglLXA0gdjKDlI8zaBkaTgoCRys3pZRhhdK1UokIrt5PKJJS6TLFSn0CwUd4UugEYiAB0vH1vLRwazi6g6/Tp5dSmi3ES+Z/BI5wslhcvPpkun/kRFw542wPmCO5/UpFRDzdQ/jhwnnqSvkEJB9YRExXBcuMOT5gvIIYM5KS0yFe27R8ys3gdSQhXmAAmjl9PjQThVo1tSOaHQZppYNZM/DsnbFf/ugWwB3f5b72/0SHcUKwTyUnYQ+JXlC07TSutoKKg7/44n33VkkeJdTCJUWVzYgnDukB+JxYPSoK7kBDmO/fE3tU/kDcQdwnyearMRPjjlWTzERQiICucFP2KMFnnY= X-Forefront-PRVS: 0211965D06 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0733; 23:gRnx69I+ZQJtRAER1XIxHaWO9Wjb7GjdjOZfWCv?= =?us-ascii?Q?1kAh+1EIraOii0Ki6P7bqlK2Ef9ow9OHYKgHF9af8sEIh2FeqjF4HGgtz64S?= =?us-ascii?Q?n8mMx39giIwBTlPPUsJSjpj2rpTncdgXra9nJg/ZEM9apdyygzyL++5OLyOq?= =?us-ascii?Q?023b7iykpNsZ1qcIH/FyJXWmVXnyIYKkGFmUAciF5BqOAlgKrvx7c7VzjI86?= =?us-ascii?Q?NdoImSZI+HWhUF5JDatuKz+Pe1kOh3VWt8jmi3x8D7BZILlI02v9qkIqSzDK?= =?us-ascii?Q?tCA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iagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0733; 7:J4r8da0Z4n6wa3DSU2PEIBeuSbOgdF0wz2y3uLJjGBiacAIivr83/aeTvWS9eGw5anIl79vECH0hrzG8ZLb/rLpZ/qT6pel9oMSMd/k7PA4U0hiA4eRfbz/1f4mT6ClSRpg6bySBEGzruAOpPU5/rrt/mHVLbhDlh9Z3qxvKMN2TWwL4slKmg0wc0OXldM9GrB35JECM32ttpWqYW4QLYPZpx5ZD+yay6NAwUcaTsu9aElSFlNI7pD9QkgRlvqWAvIOQDuZdw4sLA3FGT9Dnv2KKPSJ6MMXOuEDv32lB8oYKjYidLRj1hzJWaeotnCjlLxsAO/yIvGMMo+9qKnXWAnyK6MHnNYlgPY5Mu5LfFESDndhz8yQ7EpwGTW0zRFiGenvFGdyrP04IEh8yv55tIlwO7XbMA7Q0spq+gl8f4hk8Q3648ZnZPMEe3YXxvRqac89ZxYIiKJuCOOi433644wvrTYFsNzKFGbpL7M7RC/c6fOgxZ4eLDkWgKn8k2KtITXauREU7w6ArUd9FwtmUKQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2017 15:44:07.7428 (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: DM2PR0301MB0733 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170207_074449_355346_3D949965 X-CRM114-Status: GOOD ( 11.20 ) 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;