Messages in this thread | | | Date | Fri, 12 Jun 2020 16:46:22 +1000 | From | Herbert Xu <> | 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@zju.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@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |