From: Thomas Bogendoerfer Date: Wed, 30 Jul 2008 23:14:24 +0000 (+0200) Subject: METH: fix MAC address setup X-Git-Tag: v2.6.27-rc3~69^2~13^2~18 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d91d4bb9db4a7b2a78accff3560bfd42988c56e4;p=linux-2.6-omap-h63xx.git METH: fix MAC address setup Setup of the mac filter lost the upper 16bit of the mac address. This bug got unconvered by a patch, which fixed the promiscous handling. Signed-off-by: Thomas Bogendoerfer Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/meth.c b/drivers/net/meth.c index 4cb364e67dc..0a97c26df6a 100644 --- a/drivers/net/meth.c +++ b/drivers/net/meth.c @@ -100,7 +100,7 @@ static inline void load_eaddr(struct net_device *dev) DPRINTK("Loading MAC Address: %s\n", print_mac(mac, dev->dev_addr)); macaddr = 0; for (i = 0; i < 6; i++) - macaddr |= dev->dev_addr[i] << ((5 - i) * 8); + macaddr |= (u64)dev->dev_addr[i] << ((5 - i) * 8); mace->eth.mac_addr = macaddr; }