Commit e062233c authored by Frank Wunderlich's avatar Frank Wunderlich Committed by Chun-Kuang Hu

drm/mediatek: dpi: Fix NULL dereference in mtk_dpi_bridge_atomic_check

bridge->driver_private is not set (NULL) so use bridge_to_dpi(bridge)
like it's done in bridge_atomic_get_output_bus_fmts

Fixes: ec8747c5 ("drm/mediatek: dpi: Add bus format negotiation")
Signed-off-by: default avatarFrank Wunderlich <frank-w@public-files.de>
Tested-by: default avatarHsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
parent e73f0f0e
......@@ -605,7 +605,7 @@ static int mtk_dpi_bridge_atomic_check(struct drm_bridge *bridge,
struct drm_crtc_state *crtc_state,
struct drm_connector_state *conn_state)
{
struct mtk_dpi *dpi = bridge->driver_private;
struct mtk_dpi *dpi = bridge_to_dpi(bridge);
unsigned int out_bus_format;
out_bus_format = bridge_state->output_bus_cfg.format;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment