提交 cedca59f 编写于 作者: G Gilad Ben-Yossef 提交者: Herbert Xu

crypto: ccree - fix pm wrongful error reporting

pm_runtime_get_sync() can return 1 as a valid (none error) return
code. Treat it as such.
Signed-off-by: NGilad Ben-Yossef <gilad@benyossef.com>
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 c7b31c88
...@@ -85,7 +85,7 @@ int cc_pm_get(struct device *dev) ...@@ -85,7 +85,7 @@ int cc_pm_get(struct device *dev)
else else
pm_runtime_get_noresume(dev); pm_runtime_get_noresume(dev);
return rc; return (rc == 1 ? 0 : rc);
} }
int cc_pm_put_suspend(struct device *dev) int cc_pm_put_suspend(struct device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部