Skip to content
Commit ad7da1ce authored by Michael Walle's avatar Michael Walle Committed by Paolo Abeni
Browse files

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: 735fec99 ("net: lan966x: Implement SIOCSHWTSTAMP and SIOCGHWTSTAMP")
Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220328220350.3118969-1-michael@walle.cc


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 807ca64e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment