]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Correct unbalanced drm_vblank_put() during mode setting.
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Feb 2009 14:48:22 +0000 (14:48 +0000)
committerDave Airlie <airlied@linux.ie>
Wed, 25 Feb 2009 04:45:50 +0000 (14:45 +1000)
commit36add34b03558c8710274cc41f89af1a42109627
tree26053313cadc6914662e88de0af2e2fe04d80913
parent6b78d20fad7e72e58f3050710e5717512fc1252d
drm: Correct unbalanced drm_vblank_put() during mode setting.

The first time we install a mode, the vblank will be disabled for a pipe
and so drm_vblank_get() in drm_vblank_pre_modeset() will fail. As we
unconditionally call drm_vblank_put() afterwards, the vblank reference
counter becomes unbalanced.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/drm_irq.c