]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: cadence: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Wed, 20 May 2020 09:02:53 +0000 (17:02 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 7 Jul 2020 10:29:12 +0000 (11:29 +0100)
commitb73753cef31ec1ac94f4b1b700f7cf274d54ff09
tree7ddd33ad86a988d395d6b39c71113ad576402dee
parent88af51248300206eb935a3148484771e84138d1f
PCI: cadence: Fix runtime PM imbalance on error

pm_runtime_get_sync() increments the runtime PM usage counter even
it returns an error code. Thus a pairing decrement is needed on
the error handling path to keep the counter balanced.

Link: https://lore.kernel.org/r/20200520090253.2761-1-dinghao.liu@zju.edu.cn
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/cadence/pcie-cadence-plat.c