]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: dw_hdmi: Call drm_encoder_cleanup() in error path
authorDouglas Anderson <dianders@chromium.org>
Mon, 7 Mar 2016 22:00:50 +0000 (14:00 -0800)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 28 Mar 2016 06:48:31 +0000 (14:48 +0800)
commit9d60f0775cb6aa3d78f007850ffd519a7eda2f0b
treec65784b0eebe5cd03d764392db01c6b28fc9bc6c
parentcb8996a55c58c69a0d9c80f5f93ab6f86f072e04
drm/rockchip: dw_hdmi: Call drm_encoder_cleanup() in error path

The drm_encoder_cleanup() was missing both from the error path of
dw_hdmi_rockchip_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>
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c