linux-stable/drivers/phy/mediatek
Colin Ian King b097efba95 drm/mediatek: avoid dereferencing a null hdmi_phy on an error message
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: be28b6507c ("drm/mediatek: separate hdmi phy to different file")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Dereference after null check")
Link: https://lore.kernel.org/r/20201207150937.170435-1-colin.king@canonical.com
[vkoul: fix indent of return call]
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2020-12-08 18:26:02 +05:30
..
Kconfig phy: mediatek: allow compile-testing the hdmi phy 2020-12-05 13:20:38 +05:30
Makefile phy: mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder 2020-09-06 07:03:21 +08:00
phy-mtk-hdmi-mt2701.c drm/mediatek: Disable tmds on mt2701 2020-09-14 23:05:23 +08:00
phy-mtk-hdmi-mt8173.c phy: mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder 2020-09-06 07:03:21 +08:00
phy-mtk-hdmi.c drm/mediatek: avoid dereferencing a null hdmi_phy on an error message 2020-12-08 18:26:02 +05:30
phy-mtk-hdmi.h drm/mediatek: Disable tmds on mt2701 2020-09-14 23:05:23 +08:00
phy-mtk-tphy.c phy: phy-mtk-tphy: add a new reference clock 2020-03-20 19:34:29 +05:30
phy-mtk-ufs.c phy: phy-mtk-ufs: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30
phy-mtk-xsphy.c phy: core: rework phy_set_mode to accept phy mode and submode 2018-12-12 10:01:33 +05:30