imx-drm: imx-drm-core: fix error cleanup path for imx_drm_add_crtc()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 16 Dec 2013 11:33:24 +0000 (11:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2013 01:09:51 +0000 (17:09 -0800)
commit82832046e285952f14e707647f9ef82466c883cc
tree5b61118631833b4d996b6c5c2d5fe4e55d2c736f
parentc6236c0ce39c809c336ca929f68cf8ad02cf94e0
imx-drm: imx-drm-core: fix error cleanup path for imx_drm_add_crtc()

imx_drm_add_crtc() was kfree'ing the imx_drm_crtc structure while
leaving it on the list of CRTCs.  Delete it from the list first.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/imx-drm-core.c