mirror_ubuntu-kernels/drivers/net/ethernet/microchip/lan966x
Michael Walle ad7da1ce57 net: lan966x: fix kernel oops on ioctl when I/F is down
ioctls handled by phy_mii_ioctl() will cause a kernel oops when the
interface is down. Fix it by making sure there is a PHY attached.

Fixes: 735fec995b ("net: lan966x: Implement SIOCSHWTSTAMP and SIOCGHWTSTAMP")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220328220350.3118969-1-michael@walle.cc
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-03-29 10:47:24 +02:00
..
Kconfig net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module 2022-02-13 15:57:03 +00:00
lan966x_ethtool.c net: lan966x: Implement get_ts_info 2022-02-01 14:18:44 +00:00
lan966x_fdb.c net: lan966x: Extend switchdev with fdb support 2021-12-20 11:44:06 +00:00
lan966x_ifh.h
lan966x_mac.c net: lan966x: Fix sleep in atomic context when updating MAC table 2022-01-26 15:45:49 +00:00
lan966x_main.c net: lan966x: fix kernel oops on ioctl when I/F is down 2022-03-29 10:47:24 +02:00
lan966x_main.h net: lan966x: Add spinlock for frame transmission from CPU. 2022-03-09 14:59:14 +00:00
lan966x_mdb.c net: lan966x: Update mdb when enabling/disabling mcast_snooping 2022-02-05 15:00:43 +00:00
lan966x_phylink.c net: lan966x: use .mac_select_pcs() interface 2022-02-03 19:11:21 -08:00
lan966x_port.c net: lan966x: Fix the configuration of the pcs 2021-12-13 14:39:41 +00:00
lan966x_ptp.c net: lan966x: Add support for ptp interrupts 2022-02-01 14:18:43 +00:00
lan966x_regs.h net: lan966x: Implement the callback SWITCHDEV_ATTR_ID_BRIDGE_MC_DISABLED 2022-02-05 15:00:43 +00:00
lan966x_switchdev.c net: switchdev: remove lag_mod_cb from switchdev_handle_fdb_event_to_device 2022-02-24 21:31:43 -08:00
lan966x_vlan.c net: lan966x: Extend switchdev with mdb support 2022-01-05 11:25:13 +00:00
Makefile net: lan966x: Add support for ptp clocks 2022-02-01 14:18:43 +00:00