linux/drivers/net/ethernet/hisilicon
David Yang 0d9342701f net: hisilicon: hip04_eth: Move setting of netops to fix crash
hip04_mac_probe() calls of_phy_connect() before ndev->netdev_ops is
assigned. phy_attach_direct() -> phy_link_topo_add_phy() reads
dev->netdev_ops through netdev_need_ops_lock() since the commit in
question, so probing crashes with a NULL pointer dereference when
CONFIG_NET_SHAPER is enabled.

Assign netdev_ops before the PHY attach, as was done for emac in commit
7c9f391ec8 ("net: emac: move setting of netops to fix crash").

Fixes: ded86da4bb ("net: ethtool: relax ethnl_req_get_phydev() locking assertion")
Signed-off-by: David Yang <mmyangfl@gmail.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20261008022656.3592191-3-mmyangfl@gmail.com
Reviewed-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-10-15 10:39:21 +02:00
..
hibmcge net: hibmcge: fix page_pool DMA direction mismatch 2026-08-22 13:49:13 -07:00
hns net: hisilicon: hns_dsaf_mac: fix mdio device leak in hns_mac_register_phy() 2026-09-22 13:13:10 +02:00
hns3 net: hns3: use txqueue parameter directly in ndo_tx_timeout 2026-08-11 16:01:54 +02:00
hip04_eth.c net: hisilicon: hip04_eth: Move setting of netops to fix crash 2026-10-15 10:39:21 +02:00
hisi_femac.c net: hisilicon: hisi_femac: Move setting of netops to fix crash 2026-10-15 10:39:21 +02:00
hix5hd2_gmac.c net: hisilicon: hix5hd2_gmac: remove redundant NAPI delete 2026-07-31 18:17:31 -07:00
hns_mdio.c net: hisilicon: hns_mdio: remove incorrect ACPI_PTR annotation 2025-02-27 13:42:15 +01:00
Kconfig net: hibmcge: add support for pagepool on rx 2025-11-26 18:22:40 -08:00
Makefile net: hibmcge: Add a Makefile and update Kconfig for hibmcge 2024-10-21 11:26:53 +02:00