-
由 Shixin Liu 提交于
stable inclusion from stable-5.10.36 commit 2264965f576ff434ee7121edc98a83b072d4e645 bugzilla: 51867 CVE: NA -------------------------------- [ Upstream commit 06cd7423 ] 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>
76af8cbb