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

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
...@@ -392,7 +392,7 @@ static void bcm_sysport_get_stats(struct net_device *dev, ...@@ -392,7 +392,7 @@ static void bcm_sysport_get_stats(struct net_device *dev,
else else
p = (char *)priv; p = (char *)priv;
p += s->stat_offset; p += s->stat_offset;
data[i] = *(u32 *)p; data[i] = *(unsigned long *)p;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment