summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorShang XiaoJing <shangxiaojing@huawei.com>2022-11-24 14:49:40 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-12-02 18:12:40 +0800
commit7bcceb4c9896b1b672b636ae70fe75110d6bf1ad (patch)
tree4a5f7a4e1b191ae2e362f7f7786c23e4b9424627 /include
parentc390c452ebeb44cb979b7374d3acc3859415e86c (diff)
downloadlinux-7bcceb4c9896b1b672b636ae70fe75110d6bf1ad.tar.gz
linux-7bcceb4c9896b1b672b636ae70fe75110d6bf1ad.tar.bz2
linux-7bcceb4c9896b1b672b636ae70fe75110d6bf1ad.zip
crypto: omap-sham - Use pm_runtime_resume_and_get() in omap_sham_probe()
omap_sham_probe() calls pm_runtime_get_sync() and calls pm_runtime_put_sync() latter to put usage_counter. However, pm_runtime_get_sync() will increment usage_counter even it failed. Fix it by replacing it with pm_runtime_resume_and_get() to keep usage counter balanced. Fixes: b359f034c8bf ("crypto: omap-sham - Convert to use pm_runtime API") Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com> Acked-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions