crypto: stm32/hash - Fix PM reference leak on stm32-hash.c
stable inclusion from stable-5.10.36 commit 8a090d492f70174f8a6c2270fe4ae8adc9f8eec6 bugzilla: 51867 CVE: NA -------------------------------- [ Upstream commit 1cb3ad70 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Signed-off-by: NShixin Liu <liushixin2@huawei.com> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录