mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 11:13:58 +08:00
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: Gilad Ben-Yossef <gilad@benyossef.com> Cc: stable@vger.kernel.org # v4.19+ Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
c7b31c88da
commit
cedca59fae
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user