]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/debugfs: fix runtime pm imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Wed, 20 May 2020 10:14:53 +0000 (18:14 +0800)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 22 May 2020 01:13:52 +0000 (11:13 +1000)
commitd08128db8d5b60df5e8cd248d0cd28907a39ea95
tree976eb43cae6f080d4937f17e88dad1bb57901ce1
parente9cf46577148e85c1bf4c4aab7b6900e9c59b338
drm/nouveau/debugfs: fix runtime pm imbalance on error

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

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_debugfs.c