1
0
Fork 0

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>
wifi-calibration
Russell King 2013-12-16 11:33:24 +00:00 committed by Greg Kroah-Hartman
parent c6236c0ce3
commit 82832046e2
1 changed files with 1 additions and 0 deletions

View File

@ -528,6 +528,7 @@ int imx_drm_add_crtc(struct drm_crtc *crtc,
return 0;
err_register:
list_del(&imx_drm_crtc->list);
kfree(imx_drm_crtc);
err_alloc:
err_busy: