]> git.kernelconcepts.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:14:33 +0000 (18:14 -0700)
commitc56cebbe83dde1c93599eb29d85d5c889d7a00cf
tree1afbcaa6eeab084ae6c7bfadcbc998475dd86b37
parentab1619f4f94b908bfa33ef7eb505c50955741eb4
hwrng: exynos - Fix unbalanced PM runtime put on timeout error path

commit f1925d78d7b710a1179828d53e918295f5f5d222 upstream.

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")
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/hw_random/exynos-rng.c