Skip to contentSkip to conversation

64bit bugs in s2io

PATCH New Al Viro 1 participant 1 message Sep 23, 2006 Network drivers

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 64bit bugs in s2io

le32_to_cpu() on 64bit values

---
 drivers/net/s2io.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/s2io.c +2 -2
index e72e0e0..bb899f1 100644
@@ -4302,11 +4302,11 @@ static struct net_device_stats *s2io_get
 	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);
 }
Signature · 1 line
1.4.2.GIT