]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: hdmi: Remove duplicate cleanup calls
authorStefan Mavrodiev <stefan@olimex.com>
Tue, 17 Dec 2019 12:46:32 +0000 (14:46 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 18 Dec 2019 22:17:32 +0000 (23:17 +0100)
commitca86d112fcbcfe1b23b01ab2a5cfebc51576640d
tree734142c5d7588dcf19120fd10184572d84ffbe33
parent5c096fbfd8558a8eba639f8e4e14b80a59492598
drm/sun4i: hdmi: Remove duplicate cleanup calls

When the HDMI unbinds drm_connector_cleanup() and drm_encoder_cleanup()
are called. This also happens when the connector and the encoder are
destroyed. This double call triggers a NULL pointer exception.

The patch fixes this by removing the cleanup calls in the unbind
function.

Cc: <stable@vger.kernel.org>
Fixes: 6c088b7a3095 ("drm/sun4i: Add HDMI support")
Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20191217124632.20820-1-stefan@olimex.com
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c