android_kernel_xiaomi_sm7250/drivers/gpu/drm/sti
Peter Rosin f7c57332c0 drm/sti: do not remove the drm_bridge that was never added
[ Upstream commit 66e31a72dc38543b2d9d1ce267dc78ba9beebcfd ]

Removing the drm_bridge_remove call should avoid a NULL dereference
during list processing in drm_bridge_remove if the error path is ever
taken.

The more natural approach would perhaps be to add a drm_bridge_add,
but there are several other bridges that never call drm_bridge_add.
Just removing the drm_bridge_remove is the easier fix.

Fixes: 84601dbdea ("drm: sti: rework init sequence")
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180806061910.29914-2-peda@axentia.se
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:49:53 +01:00
..
Kconfig
Makefile
NOTES
sti_awg_utils.c
sti_awg_utils.h
sti_compositor.c
sti_compositor.h
sti_crtc.c
sti_crtc.h
sti_cursor.c
sti_cursor.h
sti_drv.c
sti_drv.h
sti_dvo.c
sti_gdp.c
sti_gdp.h
sti_hda.c
sti_hdmi_tx3g4c28phy.c
sti_hdmi_tx3g4c28phy.h
sti_hdmi.c
sti_hdmi.h
sti_hqvdp_lut.h
sti_hqvdp.c
sti_mixer.c
sti_mixer.h
sti_plane.c
sti_plane.h
sti_tvout.c
sti_vid.c
sti_vid.h
sti_vtg.c
sti_vtg.h