diff options
| author | Thomas Richard <thomas.richard@bootlin.com> | 2026-01-14 17:50:23 +0100 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-01-21 13:44:46 +0530 |
| commit | 4dd5d4c0361af0a3fd24f45c815996abf4429770 (patch) | |
| tree | c353d35f539cd5d73c1b5d7fdd4cfff46c35efe1 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | e2ce913452ab56b3330539cc443b97b7ea8c3a1a (diff) | |
phy: freescale: imx8qm-hsio: fix NULL pointer dereference
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: 82c56b6dd24f ("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>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
