linux/drivers/phy/freescale
Thomas Richard dd8b9ba3d9 phy: freescale: imx8qm-hsio: fix NULL pointer dereference
[ Upstream commit 4dd5d4c036 ]

During the probe the refclk_pad pointer is set to NULL if the
'fsl,refclk-pad-mode' property is not defined in the devicetree node. But
in imx_hsio_configure_clk_pad() this pointer is unconditionally used which
could result in a NULL pointer dereference. So check the pointer before to
use it.

Fixes: 82c56b6dd2 ("phy: freescale: imx8qm-hsio: Add i.MX8QM HSIO PHY driver support")
Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Link: https://patch.msgid.link/20260114-phy-fsl-imx8qm-hsio-fix-null-pointer-dereference-v1-1-730e941be464@bootlin.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-02-26 14:59:34 -08:00
..
Kconfig phy: fsl-imx8mq-usb: add tca function driver for imx95 2025-02-14 17:56:12 +05:30
Makefile phy: freescale: imx8qm-hsio: Add i.MX8QM HSIO PHY driver support 2024-06-15 17:52:01 +05:30
phy-fsl-imx8-mipi-dphy.c phy: freescale: phy-fsl-imx8-mipi-dphy: Fix alias name to use dashes 2024-02-07 11:19:40 +01:00
phy-fsl-imx8m-pcie.c phy: freescale: imx8m-pcie: assert phy reset during power on 2026-01-23 11:21:26 +01:00
phy-fsl-imx8mq-usb.c phy: fsl-imx8mq-usb: fix typec orientation switch when built as module 2026-01-23 11:21:26 +01:00
phy-fsl-imx8qm-hsio.c phy: freescale: imx8qm-hsio: fix NULL pointer dereference 2026-02-26 14:59:34 -08:00
phy-fsl-imx8qm-lvds-phy.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-fsl-lynx-28g.c phy: lynx-28g: check return value when calling lynx_28g_pll_get 2025-09-01 18:20:41 +05:30
phy-fsl-samsung-hdmi.c phy: freescale: fsl-samsung-hdmi: Improve LUT search for best clock 2025-05-14 12:15:51 +01:00