summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorDave Gerlach <d-gerlach@ti.com>2016-09-20 15:25:40 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2016-09-22 10:32:53 (GMT)
commitad8529fde9e3601180a839867a8ab041109aebb5 (patch)
treee874b2f92eca57b2d496fdee0779f336edc3993b /crypto
parent182e283f3e550d70ba5b7e6be66ea74726646166 (diff)
downloadlinux-ad8529fde9e3601180a839867a8ab041109aebb5.tar.xz
hwrng: omap - Only fail if pm_runtime_get_sync returns < 0
Currently omap-rng checks the return value of pm_runtime_get_sync and reports failure if anything is returned, however it should be checking if ret < 0 as pm_runtime_get_sync return 0 on success but also can return 1 if the device was already active which is not a failure case. Only values < 0 are actual failures. Fixes: 61dc0a446e5d ("hwrng: omap - Fix assumption that runtime_get_sync will always succeed") Signed-off-by: Dave Gerlach <d-gerlach@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions