crypto: stm32/cryp - Fix PM reference leak on stm32-cryp.c
stable inclusion from stable-5.10.36 commit 4e7ae0cfaca9ba57b6b10d4fe4d4bcefd9935db8 bugzilla: 51867 CVE: NA -------------------------------- [ Upstream commit 747bf30f ] 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
想要评论请 注册 或 登录