drm/i915: Fix reference leak in intel_modeset_readout_hw_state.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 14 Jul 2015 11:42:49 +0000 (13:42 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Jul 2015 15:18:22 +0000 (17:18 +0200)
commitb06f8b0df73dea39337e394805827491d0b1585c
tree59d4b58dcfa48a19abb93386864870a6fe27ad34
parent4cf0ebbd4fafbdf8e6431dbb315e5511c3efdc3b
drm/i915: Fix reference leak in intel_modeset_readout_hw_state.

Unreference the old mode_blob by calling the crtc_destroy_state
helper before zeroing the crtc_state.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c