Skip to content

Commit cedca59

Browse files
Gilad Ben-Yossefherbertx
authored andcommitted
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 <[email protected]> Cc: [email protected] # v4.19+ Signed-off-by: Herbert Xu <[email protected]>
1 parent c7b31c8 commit cedca59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/ccree/cc_pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int cc_pm_get(struct device *dev)
8585
else
8686
pm_runtime_get_noresume(dev);
8787

88-
return rc;
88+
return (rc == 1 ? 0 : rc);
8989
}
9090

9191
int cc_pm_put_suspend(struct device *dev)

0 commit comments

Comments
 (0)