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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 17:16:51 +0000 (10:16 -0700)
commit08b2dce495f36f35e2759446a0ed94c66a05a0c5
tree059f47aa90b91e480cd68f1b466444ef1cc22ba1
parent7e36f505caf7882b6cc89ecedcd7f26749ef917a
drm/i915: don't set unpin_work if vblank_get fails

commit 7317c75e66fce0c9f82fbe6f72f7e5256b315422 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_display.c