]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerKamal Mostafa <kamal@canonical.com>
Fri, 10 Jun 2016 13:32:25 +0000 (06:32 -0700)
commitfa2fb06fd59e6d1d093ff541d8061e6be0f15b8c
treeafa324f48c8f77bae60ebaead5fdea49dde86da4
parent40c23b0c7093f68eb3d962b66f06d0a8a4b85913
hwrng: exynos - Fix unbalanced PM runtime put on timeout error path

BugLink: http://bugs.launchpad.net/bugs/1590455
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/char/hw_random/exynos-rng.c