xen: netfront: fix xennet_get_ethtool_stats()
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 15 Mar 2011 04:05:40 +0000 (21:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Mar 2011 04:05:40 +0000 (21:05 -0700)
commit e9a799ea4a5551d2 (xen: netfront: ethtool stats fields should be
unsigned long) made rx_gso_checksum_fixup an unsigned long.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c

index 27cf72f26cbb647953c1f326981f29d146a15a42..5b399b54fef7058ecba5d5c6778246915a33ec18 100644 (file)
@@ -1692,7 +1692,7 @@ static void xennet_get_ethtool_stats(struct net_device *dev,
        int i;
 
        for (i = 0; i < ARRAY_SIZE(xennet_stats); i++)
-               data[i] = *(int *)(np + xennet_stats[i].offset);
+               data[i] = *(unsigned long *)(np + xennet_stats[i].offset);
 }
 
 static void xennet_get_strings(struct net_device *dev, u32 stringset, u8 * data)