From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07C82C07E9A for ; Wed, 14 Jul 2021 05:11:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D7DD2613B5 for ; Wed, 14 Jul 2021 05:11:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237798AbhGNFOZ (ORCPT ); Wed, 14 Jul 2021 01:14:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:40312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbhGNFOY (ORCPT ); Wed, 14 Jul 2021 01:14:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0C46B6135A; Wed, 14 Jul 2021 05:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626239493; bh=GKvbaLpI/cd8qIg2kcIK/1hd8C0ILLfi1PmKGowalhw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H0fBFBx56q/PtO4yQ9d4vZPdyjpqR9WJxoz7nIgeQn3eacrpO7qSQ1rXCieZBqIaT 1ypI0v8BOlYroMsH36RDDGb1MNC1kXrE9uayTz4Rjl8yOZMWhd6TNdHmedUQtiy0Nx VmyhgUGeJ+NLFSpklUTJNycPfRPn+bJnIXJfW9haO560/GDBefQe7n9PbMIm5B9o/F QOlVM4ScOh0x1BuslOsWHZdpd2woNhtbomlsgLfXpk5pAiFobr8VtLjkivM+FQGok9 HZNonBH2559U408oeipTw/y6bzwW5G6Oxy2en8ql08hA7q4jYtHpQvlwQOkYKmKmFa sAd6Pbg3CN71w== Date: Wed, 14 Jul 2021 10:41:30 +0530 From: Vinod Koul To: Yu Kuai Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com Subject: Re: [PATCH V2] dmaengine: usb-dmac: Fix PM reference leak in usb_dmac_probe() Message-ID: References: <20210706124521.1371901-1-yukuai3@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210706124521.1371901-1-yukuai3@huawei.com> Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 06-07-21, 20:45, Yu Kuai wrote: > pm_runtime_get_sync will increment pm usage counter even it failed. > Forgetting to putting operation will result in reference leak here. > Fix it by moving the error_pm label above the pm_runtime_put() in > the error path. Applied, thanks -- ~Vinod