Thread (10 messages) flat view 10 messages, 4 authors, 2018-06-28

Re: [PATCH net-next v2 1/3] net: phy: xgmiitorgmii: Check phy_driver ready before accessing

From: David Miller <davem@davemloft.net>
Date: 2018-06-28 07:12:46
Also in: lkml

From: Brandon Maier <redacted>
Date: Tue, 26 Jun 2018 12:50:48 -0500
Since a phy_device is added to the global mdio_bus list during
phy_device_register(), but a phy_device's phy_driver doesn't get
attached until phy_probe(). It's possible of_phy_find_device() in
xgmiitorgmii will return a valid phy with a NULL phy_driver. Leading to
a NULL pointer access during the memcpy().

Fixes this Oops:
 ...
Signed-off-by: Brandon Maier <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help