From: Al Viro Date: Sat, 23 Sep 2006 00:28:17 +0000 (+0100) Subject: [PATCH] 64bit bugs in s2io X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ee705dba75c2f7daae5403ad4599b6738e2da7a0;p=linux-beck.git [PATCH] 64bit bugs in s2io le32_to_cpu() on 64bit values Signed-off-by: Al Viro Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index f5dbeb27b6f0..c50f4bf34202 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); }