lkml.org 
[lkml]   [2026]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net 0/1] net: stmmac: dwmac-nuvoton: fix NULL pointer dereference in nvt_set_phy_intf_sel()
Date
This series fixes a NULL pointer dereference bug introduced in the
initial dwmac-nuvoton glue driver. The struct nvt_priv_data::dev field
was never initialized after devm_kzalloc(), leaving it NULL. When
phylink later calls nvt_set_phy_intf_sel() for interface selection,
the callback dereferences priv->dev via nvt_gmac_get_delay(), triggering
a NULL pointer dereference.

Joey Lu (1):
net: stmmac: dwmac-nuvoton: fix NULL pointer dereference in
nvt_set_phy_intf_sel()

drivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c | 2 ++
1 file changed, 2 insertions(+)

--
2.43.0


\
 
 \ /
  Last update: 2026-05-06 10:51    [W:0.046 / U:12.781 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog