diff options
| author | 2026-05-06 16:46:13 +0800 | |
|---|---|---|
| committer | 2026-05-07 08:41:30 -0700 | |
| commit | dedf6c90386d99b878763c183a08b61d3ce4824e (patch) | |
| tree | e8b26e8dc2337596a4b3d4d6b06890bda83cba06 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | tcp: Fix dst leak in tcp_v6_connect(). (diff) | |
net: stmmac: dwmac-nuvoton: fix NULL pointer dereference in nvt_set_phy_intf_sel()
priv->dev was never initialized after devm_kzalloc() allocates the
private data structure. When nvt_set_phy_intf_sel() is later invoked
via the phylink interface_select callback, it calls
nvt_gmac_get_delay(priv->dev, ...) which dereferences the NULL pointer.
Fix this by assigning priv->dev = dev immediately after allocation.
Fixes: 4d7c557f58ef ("net: stmmac: dwmac-nuvoton: Add dwmac glue for Nuvoton MA35 family")
Signed-off-by: Joey Lu <a0987203069@gmail.com>
Link: https://patch.msgid.link/20260506084614.192894-2-a0987203069@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
