drm/i915: Don't clobber crtc->fb when queue_flip fails
authorVille Syrjälä <[email protected]>
Fri, 22 Feb 2013 14:53:38 +0000 (16:53 +0200)
committerDaniel Vetter <[email protected]>
Sun, 3 Mar 2013 18:51:33 +0000 (19:51 +0100)
commit4a35f83b2b7c6aae3fc0d1c4554fdc99dc33ad07
tree82bd8df4e7b0719c38ca722b358d6e83922bd607
parentb18ac466956c7e7b5abf7a2d6adf8c626267d0ae
drm/i915: Don't clobber crtc->fb when queue_flip fails

Restore crtc->fb to the old framebuffer if queue_flip fails.

While at it, kill the pointless intel_fb temp variable.

v2: Update crtc->fb before queue_flip and restore it back
    after a failure.

Cc: [email protected]
Signed-off-by: Ville Syrjälä <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Reported-and-Tested-by: Mika Kuoppala <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/intel_display.c