diff options
author | Mattias Walström <mattias@vmlinux.org> | 2010-05-05 07:55:48 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-05 07:55:48 (GMT) |
commit | 7cff0943a1104479fc9fc2d6ced24c02ba81e73e (patch) | |
tree | afda069dcdff2f06d22bc45fcb89a1eb58dadd67 /drivers/net | |
parent | f935aa9e99d6ec74a50871c120e6b21de7256efb (diff) | |
download | linux-fsl-qoriq-7cff0943a1104479fc9fc2d6ced24c02ba81e73e.tar.xz |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/fec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 9f98c1c..9b4e8f7 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -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; } |