Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 016eb551 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

net: bcmsysport: Device stats are unsigned long



On 64bits kernels, device stats are 64bits wide, not 32bits.

Fixes: 80105bef ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79c62220
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -392,7 +392,7 @@ static void bcm_sysport_get_stats(struct net_device *dev,
		else
			p = (char *)priv;
		p += s->stat_offset;
		data[i] = *(u32 *)p;
		data[i] = *(unsigned long *)p;
	}
}