linux_dsm_epyc7002/drivers/gpu/drm/sun4i
Giulio Benetti 49c5c0769a
drm/sun4i: tcon: prevent tcon->panel dereference if NULL
If tcon->panel pointer is NULL, trying to dereference from it
(i.e. tcon->panel->connector) will cause a null pointer dereference.

Add tcon->panel null pointer check before calling
sun4i_tcon0_mode_set_dithering().

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Fixes: f11adcecbd ("drm/sun4i: tcon: Add dithering support for
                      RGB565/RGB666 LCD panels")
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181005215951.99003-2-giulio.benetti@micronovasrl.com
2018-10-08 11:20:55 +02:00
..
Kconfig
Makefile
sun4i_backend.c
sun4i_backend.h
sun4i_crtc.c
sun4i_crtc.h
sun4i_dotclock.c
sun4i_dotclock.h
sun4i_drv.c Revert "drm/sun4i: Remove R40 display pipeline compatibles" 2018-09-27 04:18:07 -04:00
sun4i_drv.h
sun4i_framebuffer.c
sun4i_framebuffer.h
sun4i_frontend.c
sun4i_frontend.h
sun4i_hdmi_ddc_clk.c
sun4i_hdmi_enc.c
sun4i_hdmi_i2c.c
sun4i_hdmi_tmds_clk.c
sun4i_hdmi.h
sun4i_layer.c
sun4i_layer.h
sun4i_lvds.c drm/sun4i: tcon: fix check of tcon->panel null pointer 2018-10-08 11:20:50 +02:00
sun4i_lvds.h
sun4i_rgb.c drm/sun4i: tcon: fix check of tcon->panel null pointer 2018-10-08 11:20:50 +02:00
sun4i_rgb.h
sun4i_tcon.c drm/sun4i: tcon: prevent tcon->panel dereference if NULL 2018-10-08 11:20:55 +02:00
sun4i_tcon.h drm/sun4i: tcon: Rename Dithering related register macros 2018-09-07 13:23:01 +02:00
sun4i_tv.c
sun6i_drc.c
sun6i_mipi_dphy.c
sun6i_mipi_dsi.c
sun6i_mipi_dsi.h
sun8i_csc.c
sun8i_csc.h
sun8i_dw_hdmi.c drm/sun4i: Add support for HDMI voltage regulator 2018-09-05 09:20:28 +02:00
sun8i_dw_hdmi.h drm/sun4i: Add support for HDMI voltage regulator 2018-09-05 09:20:28 +02:00
sun8i_hdmi_phy_clk.c
sun8i_hdmi_phy.c This is the 4.19-rc5 stable release 2018-09-27 11:06:46 +10:00
sun8i_mixer.c Revert "drm/sun4i: Remove R40 display pipeline compatibles" 2018-09-27 04:18:07 -04:00
sun8i_mixer.h
sun8i_tcon_top.c Revert "drm/sun4i: Remove R40 display pipeline compatibles" 2018-09-27 04:18:07 -04:00
sun8i_tcon_top.h
sun8i_ui_layer.c
sun8i_ui_layer.h
sun8i_ui_scaler.c
sun8i_ui_scaler.h
sun8i_vi_layer.c
sun8i_vi_layer.h
sun8i_vi_scaler.c
sun8i_vi_scaler.h
sunxi_engine.h