972db497be
[ Upstream commit b097efba9580d1f7cbc80cda84e768983e3de541 ]
Currently there is a null pointer check for hdmi_phy that implies it
may be null, however a dev_err messages dereferences this potential null
pointer. Avoid a null pointer dereference by only emitting the dev_err
message if hdmi_phy is non-null. It is a moot point if the error message
needs to be printed at all, but since this is a relatively new piece of
code it may be useful to keep the message in for the moment in case there
are unforseen errors that need to be reported.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mtk_cec.c | ||
mtk_cec.h | ||
mtk_disp_color.c | ||
mtk_disp_ovl.c | ||
mtk_disp_rdma.c | ||
mtk_dpi.c | ||
mtk_dpi_regs.h | ||
mtk_drm_crtc.c | ||
mtk_drm_crtc.h | ||
mtk_drm_ddp.c | ||
mtk_drm_ddp.h | ||
mtk_drm_ddp_comp.c | ||
mtk_drm_ddp_comp.h | ||
mtk_drm_drv.c | ||
mtk_drm_drv.h | ||
mtk_drm_fb.c | ||
mtk_drm_fb.h | ||
mtk_drm_gem.c | ||
mtk_drm_gem.h | ||
mtk_drm_plane.c | ||
mtk_drm_plane.h | ||
mtk_dsi.c | ||
mtk_hdmi.c | ||
mtk_hdmi.h | ||
mtk_hdmi_ddc.c | ||
mtk_hdmi_phy.c | ||
mtk_hdmi_phy.h | ||
mtk_hdmi_regs.h | ||
mtk_mipi_tx.c | ||
mtk_mt2701_hdmi_phy.c | ||
mtk_mt8173_hdmi_phy.c |