net: fec_mxc: Fix corruption of device tree blob.
PATCH 1/1 net: fec_mxc: Fix corruption of device tree blob.
Modifying content of dev->name leads to the device tree corruption because it points to the node name located there.
Signed-off-by Daniel Strnad <[email protected]>
Cc Stefano Babic <[email protected]>
Cc Jagan Teki <[email protected]>
--- drivers/net/fec_mxc.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/fec_mxc.c +0 -1
@@ -1240,7 +1240,6 @@ static int fecmxc_probe(struct udevice *dev) }fec_reg_setup (priv); -fec_set_dev_name ((char *)dev->name, dev_id); priv->dev_id = (dev_id ==-1 ) ?0 : dev_id;return 0 ;
Signature · 1 line
2.11.0
PATCH 1/1 net: fec_mxc: Fix corruption of device tree blob.
Quoted 6 lines · Daniel Strnad
Modifying content of
dev->nameleads to the device tree corruption because it points to the node name located there.Signed-off-by Daniel Strnad <[email protected]>Cc Stefano Babic <[email protected]>Cc Jagan Teki <[email protected]>
Acked-by Joe Hershberger <[email protected]>
[U-Boot] net: fec_mxc: Fix corruption of device tree blob
In reply to Daniel Strnad