diff options
| author | Dave Gerlach <d-gerlach@ti.com> | 2016-09-20 10:25:40 -0500 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:58:26 +0200 |
| commit | 15a9d4b6e1471bb48c1106da0bd8184dfb0c44d4 (patch) | |
| tree | 6a538c16921ca6d46f2e89097a4dbb2f497a4e53 /include/linux/openvswitch.h | |
| parent | 4f51e05bed0b463b2e292f2b85205e8a31b469bc (diff) | |
hwrng: omap - Only fail if pm_runtime_get_sync returns < 0
commit ad8529fde9e3601180a839867a8ab041109aebb5 upstream.
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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/openvswitch.h')
0 files changed, 0 insertions, 0 deletions
