Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7ABECC4332F for ; Fri, 2 Dec 2022 10:20:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233355AbiLBKU6 (ORCPT ); Fri, 2 Dec 2022 05:20:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233343AbiLBKUx (ORCPT ); Fri, 2 Dec 2022 05:20:53 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8B94CCFFE for ; Fri, 2 Dec 2022 02:20:52 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1p139w-003CKu-Ge; Fri, 02 Dec 2022 18:20:45 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 02 Dec 2022 18:20:44 +0800 Date: Fri, 2 Dec 2022 18:20:44 +0800 From: Herbert Xu To: Shang XiaoJing Cc: davem@davemloft.net, mgreer@animalcreek.com, linux-crypto@vger.kernel.org Subject: Re: [PATCH] crypto: omap-sham - Use pm_runtime_resume_and_get() in omap_sham_probe() Message-ID: References: <20221124064940.19845-1-shangxiaojing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221124064940.19845-1-shangxiaojing@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Nov 24, 2022 at 02:49:40PM +0800, Shang XiaoJing wrote: > omap_sham_probe() calls pm_runtime_get_sync() and calls > pm_runtime_put_sync() latter to put usage_counter. However, > pm_runtime_get_sync() will increment usage_counter even it failed. Fix > it by replacing it with pm_runtime_resume_and_get() to keep usage > counter balanced. > > Fixes: b359f034c8bf ("crypto: omap-sham - Convert to use pm_runtime API") > Signed-off-by: Shang XiaoJing > --- > drivers/crypto/omap-sham.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt