[ 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 | ||
| phy-mtk-hdmi-mt2701.c | ||
| phy-mtk-hdmi-mt8173.c | ||
| phy-mtk-hdmi.c | ||
| phy-mtk-hdmi.h | ||
| phy-mtk-tphy.c | ||
| phy-mtk-ufs.c | ||
| phy-mtk-xsphy.c | ||