drm/i915: hold ref on flip object until it completes
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 10 Feb 2010 23:09:44 +0000 (15:09 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 11 Feb 2010 01:34:46 +0000 (17:34 -0800)
commit75dfca80a610e4e87d3b9ccfb3f520692808697d
treef36aec97c8e6a6ff7c8c169a2ab5fc078074593c
parent84b79f8d2882b0a84330c04839ed4d3cefd2ff77
drm/i915: hold ref on flip object until it completes

This will prevent things from falling over if the user frees the flip
buffer before we complete the flip, since we'll hold an internal
reference.

Reported-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c