OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7b31c8
)
crypto: ccree - fix pm wrongful error reporting
author
Gilad Ben-Yossef
<gilad@benyossef.com>
Thu, 16 Jan 2020 10:14:40 +0000
(12:14 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 22 Jan 2020 08:21:10 +0000
(16:21 +0800)
pm_runtime_get_sync() can return 1 as a valid (none error) return
code. Treat it as such.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_pm.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/ccree/cc_pm.c
b/drivers/crypto/ccree/cc_pm.c
index
4de25c8
..
79c6121
100644
(file)
--- a/
drivers/crypto/ccree/cc_pm.c
+++ b/
drivers/crypto/ccree/cc_pm.c
@@
-85,7
+85,7
@@
int cc_pm_get(struct device *dev)
else
pm_runtime_get_noresume(dev);
- return
rc
;
+ return
(rc == 1 ? 0 : rc)
;
}
int cc_pm_put_suspend(struct device *dev)