]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Drop fb reference on load_detect_pipe failure path
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Dec 2017 22:00:25 +0000 (22:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Dec 2017 11:36:48 +0000 (11:36 +0000)
commit220572e346fef1a2c4688d4988ab28777e1f3b4f
treecb72ec717999b5f470d3544c12d8feca85cbe592
parentfbd64042bacdc50755750e1e17e59652fc46ac87
drm/i915: Drop fb reference on load_detect_pipe failure path

When intel_modeset_setup_plane_state() fails drop the local framebuffer
reference before jumping to the error, otherwise we leak the framebuffer.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Fixes: 9c02676dd216 ("drm/i915: Use atomic state to obtain load detection crtc, v3.")
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171207220025.22698-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_display.c