drm/fsl-dcu: avoid memory leak on errors
authorStefan Agner <stefan@agner.ch>
Mon, 16 Nov 2015 23:43:34 +0000 (15:43 -0800)
committerStefan Agner <stefan@agner.ch>
Fri, 26 Feb 2016 00:13:16 +0000 (16:13 -0800)
commit72cc05a5182079a2506c85f2cf4782dca3ac7e21
treee06012f7f898d2d8652cc0d0233ed89fd3a6f42c
parente291d2985b2f7d7e0eb0953d8812d3a06f111ec2
drm/fsl-dcu: avoid memory leak on errors

Improve error handling during CRTC initialization. Especially avoid
memory leaks in the primary plane initialization error path.

Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c