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: 735fec995b21 ("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
..
2022-03-04 12:02:19 +00:00
2022-03-21 18:33:57 -07:00
2022-03-21 18:33:57 -07:00
2022-03-06 11:05:31 +00:00
2022-03-06 11:05:31 +00:00
2022-03-06 11:05:31 +00:00
2022-03-24 13:13:26 -07:00
2022-03-16 08:47:02 -07:00
2022-03-01 08:38:01 +00:00
2022-03-17 20:33:52 +01:00
2022-02-15 14:27:17 +00:00