]> 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)
commit5e6455bf0994fc8d5d5a1ca33fe78eb6608bb70e
tree976eb43cae6f080d4937f17e88dad1bb57901ce1
parent180e4dd1440938fae845b74b1d7e0b68dc1b8729
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