aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-09-23 01:28:17 +0100
committerJeff Garzik <jeff@garzik.org>2006-09-25 20:08:10 -0400
commitee705dba75c2f7daae5403ad4599b6738e2da7a0 (patch)
tree9e0dfdfee96d35a6e25c7d0c937b1284530f20d6
parent8a8e447b2aa1f9139d0bfc94a2a3426be9c8d40a (diff)
[PATCH] 64bit bugs in s2io
le32_to_cpu() on 64bit values Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/net/s2io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index f5dbeb27b6f..c50f4bf3420 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -4303,11 +4303,11 @@ static struct net_device_stats *s2io_get_stats(struct net_device *dev)
sp->stats.tx_errors =
le32_to_cpu(mac_control->stats_info->tmac_any_err_frms);
sp->stats.rx_errors =
- le32_to_cpu(mac_control->stats_info->rmac_drop_frms);
+ le64_to_cpu(mac_control->stats_info->rmac_drop_frms);
sp->stats.multicast =
le32_to_cpu(mac_control->stats_info->rmac_vld_mcst_frms);
sp->stats.rx_length_errors =
- le32_to_cpu(mac_control->stats_info->rmac_long_frms);
+ le64_to_cpu(mac_control->stats_info->rmac_long_frms);
return (&sp->stats);
}