]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: fec_mxc: Fix corruption of device tree blob
authorDaniel Strnad <strnadda@gmail.com>
Thu, 2 Feb 2017 11:11:40 +0000 (12:11 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 7 Feb 2017 16:54:34 +0000 (10:54 -0600)
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 <strnadda@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/fec_mxc.c

index 3304fddc696ffca174477bd7f1f4859a8e8af2d0..9e9b8beb92495d1a80fa0ae419fc129c23d2e084 100644 (file)
@@ -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;