staging: drm/imx: fix double free bug in error path
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 25 Dec 2012 14:58:39 +0000 (15:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 20:27:52 +0000 (12:27 -0800)
commitefe57d5977fa62b8fdf3a38c236d1aa5351228be
tree8d4cdfb81f072b307271ea3bfc1f919d3e062a34
parent9a8f3f4490922dd62556a8004aa06bc3f1054894
staging: drm/imx: fix double free bug in error path

kfree(imx_drm_encoder) is already being called at the label
'err_register'.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
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