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:18:48 +0000 (18:18 -0700)
commitaad56aa19257c76294a506f524328ad2cc2d455f
treed53c3a64025c72c0496ce00660a7dac12681a271
parentfe5cfed0523eb4b3d540712f70173872c91335d2
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