FEC: Fix kernel panic in fec_set_mac_address.
Fix memory corruption that sometimes result in kernel panic. Signed-off-by: Mattias Walström <mattias@vmlinux.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f935aa9e99
commit
7cff0943a1
@ -1653,7 +1653,7 @@ fec_set_mac_address(struct net_device *dev, void *p)
|
||||
(dev->dev_addr[1] << 16) | (dev->dev_addr[0] << 24),
|
||||
fep->hwp + FEC_ADDR_LOW);
|
||||
writel((dev->dev_addr[5] << 16) | (dev->dev_addr[4] << 24),
|
||||
fep + FEC_ADDR_HIGH);
|
||||
fep->hwp + FEC_ADDR_HIGH);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user