]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwrng: exynos - Fix unbalanced PM runtime put on timeout error path
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 14 Mar 2016 00:07:13 +0000 (09:07 +0900)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 Apr 2016 12:35:43 +0000 (20:35 +0800)
commitf1925d78d7b710a1179828d53e918295f5f5d222
tree96591f8fc544a45b1ccc48f25ca1c25918d5e883
parentf0d947ac01632fa6c75cb07262922a93736385c1
hwrng: exynos - Fix unbalanced PM runtime put on timeout error path

In case of timeout during read operation, the exit path lacked PM
runtime put. This could lead to unbalanced runtime PM usage counter thus
leaving the device in an active state.

Fixes: d7fd6075a205 ("hwrng: exynos - Add timeout for waiting on init done")
Cc: <stable@vger.kernel.org> # v4.4+
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/exynos-rng.c