OSDN Git Service

drm/nouveau/dispnv50: fix runtime pm imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Wed, 20 May 2020 10:47:48 +0000 (18:47 +0800)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 22 May 2020 01:13:53 +0000 (11:13 +1000)
commitdc455f4c888365595c0a13da445e092422d55b8d
tree0aedde06de4e372ed61a8226190d44b8bd3fbe4e
parentd3faddc7dcd326c0edc906f907f83a8454986d99
drm/nouveau/dispnv50: 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/dispnv50/disp.c