You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
media: atomisp: Fix runtime PM imbalance in atomisp_pci_probe
[ Upstream commit 672fe1cf14 ]
When hmm_pool_register() fails, a pairing PM usage counter
increment is needed to keep the counter balanced. It's the
same for the following error paths.
Link: https://lore.kernel.org/linux-media/20210408081850.24278-1-dinghao.liu@zju.edu.cn
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9a85b9e376
commit
e5cecb9105
@@ -1815,6 +1815,7 @@ request_irq_fail:
|
||||
hmm_cleanup();
|
||||
hmm_pool_unregister(HMM_POOL_TYPE_RESERVED);
|
||||
hmm_pool_fail:
|
||||
pm_runtime_get_noresume(&pdev->dev);
|
||||
destroy_workqueue(isp->wdt_work_queue);
|
||||
wdt_work_queue_fail:
|
||||
atomisp_acc_cleanup(isp);
|
||||
|
||||
Reference in New Issue
Block a user