crypto: ccree - fix pm wrongful error reporting
commit cedca59fae
upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
70439e8b7c
commit
d8760030e7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue