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-03-01 16:38:16 -08:00
2016-04-13 15:14:24 -04:00
2016-03-23 17:52:10 +02:00
2016-04-12 12:35:07 -07:00
2016-05-10 15:01:47 +10:00
2016-04-16 22:52:03 +05:30
2016-03-25 08:52:25 -07:00
2016-05-05 08:26:54 -07:00
2016-04-07 22:11:08 +02:00
2016-05-07 08:10:08 -07:00
2016-03-23 17:20:59 -07:00
2016-05-07 08:17:45 -07:00
2016-05-07 10:53:32 -07:00
2016-04-15 15:25:09 -07:00
2016-03-19 15:15:07 -07:00
2016-04-18 19:52:47 -07:00
2016-04-27 08:57:11 -07:00
2016-04-14 16:54:00 +02:00
2016-03-18 10:15:11 -07:00
2016-04-25 16:20:49 -04:00
2016-03-04 12:12:08 +01:00
2016-02-26 12:47:32 +02:00
2016-04-29 17:07:54 -07:00
2016-03-17 13:05:09 -07:00
2016-05-09 13:49:56 +10:00