mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
crypto: sa2ul - Fix pm_runtime enable in sa_ul_probe()
[ Upstream commit5c8552325e] The pm_runtime APIs added first in commit7694b6ca64("crypto: sa2ul - Add crypto driver") are not unwound properly and was fixed up partially in commit13343badae("crypto: sa2ul - Fix PM reference leak in sa_ul_probe()"). This fixed up the pm_runtime usage count but not the state. Fix this properly. Fixes:13343badae("crypto: sa2ul - Fix PM reference leak in sa_ul_probe()") Signed-off-by: Suman Anna <s-anna@ti.com> Reviewed-by: Tero Kristo <kristo@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8ac033d9c4
commit
c3285441b4
|
|
@ -2356,6 +2356,7 @@ static int sa_ul_probe(struct platform_device *pdev)
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
dev_err(&pdev->dev, "%s: failed to get sync: %d\n", __func__,
|
dev_err(&pdev->dev, "%s: failed to get sync: %d\n", __func__,
|
||||||
ret);
|
ret);
|
||||||
|
pm_runtime_disable(dev);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user