]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerEric Anholt <eric@anholt.net>
Tue, 18 Apr 2017 19:31:14 +0000 (12:31 -0700)
commit50278fa7ce68f20634d1f0b32d87ad9ee6547df6
tree0e74238e3c3cb5d55bc8f622bbbd5ee442e05fea
parent4e978abc8d2321be108111f5cc9ef698d51bd913
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>
drivers/gpu/drm/vc4/vc4_gem.c