Commit 7cff0943 authored by Mattias Walström's avatar Mattias Walström Committed by David S. Miller

FEC: Fix kernel panic in fec_set_mac_address.

Fix memory corruption that sometimes result in kernel panic.
Signed-off-by: default avatarMattias Walström <mattias@vmlinux.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f935aa9e
...@@ -1653,7 +1653,7 @@ fec_set_mac_address(struct net_device *dev, void *p) ...@@ -1653,7 +1653,7 @@ fec_set_mac_address(struct net_device *dev, void *p)
(dev->dev_addr[1] << 16) | (dev->dev_addr[0] << 24), (dev->dev_addr[1] << 16) | (dev->dev_addr[0] << 24),
fep->hwp + FEC_ADDR_LOW); fep->hwp + FEC_ADDR_LOW);
writel((dev->dev_addr[5] << 16) | (dev->dev_addr[4] << 24), writel((dev->dev_addr[5] << 16) | (dev->dev_addr[4] << 24),
fep + FEC_ADDR_HIGH); fep->hwp + FEC_ADDR_HIGH);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment