Skip to content

Commit

Permalink
FEC: Fix kernel panic in fec_set_mac_address.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mattias Walström authored and David S. Miller committed May 5, 2010
1 parent f935aa9 commit 7cff094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7cff094

Please sign in to comment.