Ville Syrjälä 69ae561f45 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>
2016-05-30 17:02:03 +03:00
..
2016-04-22 08:32:51 +10:00
2016-03-14 09:46:02 +10:00
2016-05-06 17:47:38 +02:00
2016-05-09 13:49:56 +10:00
2016-05-09 13:49:56 +10:00
2016-05-09 13:49:56 +10:00
2016-05-09 13:49:56 +10:00
2016-04-20 12:58:45 +02:00
2016-05-09 13:49:56 +10:00
2016-05-09 13:49:56 +10:00
2016-05-09 13:49:56 +10:00
2016-05-09 13:49:56 +10:00
2016-05-06 16:04:48 +02:00