projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
655217d
)
net: fec_mxc: Fix corruption of device tree blob
author
Daniel Strnad
<strnadda@gmail.com>
Thu, 2 Feb 2017 11:11:40 +0000
(12:11 +0100)
committer
Joe 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
patch
|
blob
|
history
diff --git
a/drivers/net/fec_mxc.c
b/drivers/net/fec_mxc.c
index
3304fdd
..
9e9b8be
100644
(file)
--- a/
drivers/net/fec_mxc.c
+++ b/
drivers/net/fec_mxc.c
@@
-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;