]> git.baikalelectronics.ru Git - kernel.git/commit
drm/imx: dw_hdmi: Call drm_encoder_cleanup() in error path
authorDouglas Anderson <dianders@chromium.org>
Mon, 7 Mar 2016 22:00:51 +0000 (14:00 -0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 31 Mar 2016 09:24:26 +0000 (11:24 +0200)
commitef467b4fc8d1ebec77b5e626197b637cdc250ad1
tree7d3efc887259d09462187d643b95b0a79e7ef20d
parent75ec301990487593f499c9554710d3ccd9054d64
drm/imx: dw_hdmi: Call drm_encoder_cleanup() in error path

The drm_encoder_cleanup() was missing both from the error path of
dw_hdmi_imx_bind().  This caused a crash when slub_debug was
enabled and we ended up deferring probe of HDMI at boot.

This call isn't needed from unbind() because if dw_hdmi_bind() returns
no error then it takes over the job of freeing the encoder (in
dw_hdmi_unbind).

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/dw_hdmi-imx.c