]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: ks-sa - Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Thu, 28 May 2020 07:21:04 +0000 (15:21 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 15 Jun 2020 07:38:53 +0000 (17:38 +1000)
commit4a6253e732f2b9dec8aa3cc8cee8b2750d836886
tree4c26bef401b33a653e71b69251a8a67ab741c057
parent2e0873da09585b8a2daf9ca8c2facd15f454ec3f
hwrng: ks-sa - Fix runtime PM imbalance on error

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>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/ks-sa-rng.c