]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: fix runtime pm imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Wed, 20 May 2020 10:25:49 +0000 (18:25 +0800)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 22 May 2020 01:13:52 +0000 (11:13 +1000)
commit7e2ebe1a3a42255aa66022015418af026dd23414
tree9ecbe899920c07b190a0c8c461259b01888d6379
parentd08128db8d5b60df5e8cd248d0cd28907a39ea95
drm/nouveau: 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_gem.c