Re: [PATCH net] net: phy: reject non-PHY mdio devices in phy_connect()

From
Ziheng Wei <hidden>
Date
2026-11-15 16:43:17
Also in
lkml, stable
Reply to
Andrew Lunn, 2026-11-15
On Sun, Nov 15, 2026 at 05:30:15PM +0100, Andrew Lunn wrote:
quoted
Fixes: a9049e0c513c ("mdio: Add support for mdio drivers.")
Cc: <redacted>
Who does this bother?
Nobody that I know of. I found it by reading the code and could only
trigger it with a test module that registers a bare mdio_device at the
address passed to phy_connect(). I am not aware of a board or driver
that does this, so it does not belong in net or stable.

If you think the check is still worth having as hardening, I can send
it to net-next without the Fixes and stable tags. Otherwise please
drop it.

Thanks,
Ziheng
Thread (5 messages) 5 messages, 2 authors, last reply 3d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help