diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2016-06-30 22:27:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-01 22:37:43 +0200 |
commit | 016eb55157166132b094e53434748cae35e18455 (patch) | |
tree | 2d82806c32d32ceef78fa2722071aeb29c3a4184 | |
parent | macsec: set actual real device for xmit when !protect_frames (diff) | |
download | linux-016eb55157166132b094e53434748cae35e18455.tar.xz linux-016eb55157166132b094e53434748cae35e18455.zip |
net: bcmsysport: Device stats are unsigned long
On 64bits kernels, device stats are 64bits wide, not 32bits.
Fixes: 80105befdb4b ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/bcmsysport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.c index 543bf38105c9..bfa26a2590c9 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.c +++ b/drivers/net/ethernet/broadcom/bcmsysport.c @@ -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; } } |