drm: Only decouple the old_fb from the crtc is we call mode_set*
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Sep 2010 08:41:32 +0000 (09:41 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 13 Sep 2010 10:25:46 +0000 (20:25 +1000)
commit356ad3cd616185631235ffb48b3efbf39f9923b3
tree178d1949631bfa36944aa2861916155c3140240b
parente6db0da02ea753968d15ae3e835059c207647e78
drm: Only decouple the old_fb from the crtc is we call mode_set*

Otherwise when disabling the output we switch to the new fb (which is
likely NULL) and skip the call to mode_set -- leaking driver private
state on the old_fb.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=29857
Reported-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dave Airlie <airlied@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c