[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200612064622.GA16987@gondor.apana.org.au>
Date: Fri, 12 Jun 2020 16:46:22 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Dinghao Liu <dinghao.liu@....edu.cn>
Cc: kjlu@....edu, Matt Mackall <mpm@...enic.com>,
Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Ben Dooks <ben.dooks@...ethink.co.uk>,
YueHaibing <yuehaibing@...wei.com>,
Kate Stewart <kstewart@...uxfoundation.org>,
Alexander Sverdlin <alexander.sverdlin@...ia.com>,
Thomas Gleixner <tglx@...utronix.de>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [v2] hwrng: ks-sa - Fix runtime PM imbalance on error
On Thu, May 28, 2020 at 03:21:04PM +0800, Dinghao Liu wrote:
> pm_runtime_get_sync() increments the runtime PM usage counter even
> the call returns an error code. Thus a pairing decrement is needed
> on the error handling path to keep the counter balanced.
>
> Signed-off-by: Dinghao Liu <dinghao.liu@....edu.cn>
> ---
>
> Changelog:
>
> v2: - Use pm_runtime_put_noidle() instead of pm_runtime_put_sync().
> ---
> drivers/char/hw_random/ks-sa-rng.c | 1 +
> 1 file changed, 1 insertion(+)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists