]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
FEC: Fix kernel panic in fec_set_mac_address.
authorMattias Walström <mattias@vmlinux.org>
Wed, 5 May 2010 07:55:48 +0000 (00:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 May 2010 07:55:48 +0000 (00:55 -0700)
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>
drivers/net/fec.c

index 9f98c1c4a344e21cc558e090ee3e2be313ccd8c5..9b4e8f797a7ad76d7ae8c36b8efe5d08a94f530d 100644 (file)
@@ -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;
 }