]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't leak primary/cursor planes on crtc init failure
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 May 2016 17:59:22 +0000 (20:59 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 May 2016 14:02:03 +0000 (17:02 +0300)
commit6be88f190b293adaef08552b97f2c1355a8d0af6
tree1fdc265bc17279476045520df5796c952087c069
parent2f3b5aabd34b3e7d91cfd389244c2d7263a303e8
drm/i915: Don't leak primary/cursor planes on crtc init failure

Call intel_plane_destroy() instead of drm_plane_cleanup() so that we
also free the plane struct itself when bailing out of the crtc init.

And make intel_plane_destroy() NULL tolerant to avoid having to check
for it in the caller.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1464371966-15190-5-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c