From: Thomas Bogendoerfer Date: Wed, 30 Jul 2008 23:14:24 +0000 (+0200) Subject: METH: fix MAC address setup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d91d4bb9db4a7b2a78accff3560bfd42988c56e4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 4cb364e67dc6..0a97c26df6ab 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; }