drm/i915: don't set unpin_work if vblank_get fails
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 29 Aug 2011 16:45:28 +0000 (09:45 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 16 Dec 2011 16:49:58 +0000 (08:49 -0800)
commit7317c75e66fce0c9f82fbe6f72f7e5256b315422
treeb80e8c08261ee4b6551ea6d87f3fb26d578d8805
parentc0f372b3746d4ede07b2ace2beabd38d9c045b25
drm/i915: don't set unpin_work if vblank_get fails

This fixes a race where we may try to finish a page flip and decrement
the refcount even if our vblank_get failed and we ended up with a
spurious flip pending interrupt.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=34211.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_display.c