]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: atomisp: Fix runtime PM imbalance in atomisp_pci_probe
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Thu, 8 Apr 2021 08:18:43 +0000 (10:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:02 +0000 (13:42 +0200)
commit1f09d6c6bac3fd8a75debf5041c60a7d96f918fa
tree2905ac0bf2c39459db47d0feacfaa2f6784ffd20
parent9dc8dc22934a9fa7cc31430f0eac477ff737e53a
media: atomisp: Fix runtime PM imbalance in atomisp_pci_probe

[ Upstream commit 672fe1cf145ab9978c62eb827d6a16aa6b63994b ]

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>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c