drm/vc4: Fix refcounting of runtime PM get if it errors out.
authorEric Anholt <eric@anholt.net>
Mon, 17 Apr 2017 16:26:03 +0000 (09:26 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:54:35 +0000 (15:54 +0100)
commitef8d089ca880fc709ad3af2ee628ad4f310a4130
tree50726877a16821a6749c8e90f39f3d5901227aef
parentfd7cdbb45267151722bbf8f48fe9775ae4b0d399
drm/vc4: Fix refcounting of runtime PM get if it errors out.

We were returning without decrementing if the error happened, meaning
that at the next submit we wouldn't try to bring up the power domain.

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: http://patchwork.freedesktop.org/patch/msgid/20170417162603.12726-1-eric@anholt.net
Reviewed-by: Sean Paul <seanpaul@chromium.org>
(cherry picked from commit 925d05e1f825db9490da33afe35bd5383d301e97)
drivers/gpu/drm/vc4/vc4_gem.c