diff options
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/appldata/appldata_net_sum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/appldata/appldata_net_sum.c b/arch/s390/appldata/appldata_net_sum.c index 2180ac105b0..6c1815a4771 100644 --- a/arch/s390/appldata/appldata_net_sum.c +++ b/arch/s390/appldata/appldata_net_sum.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/errno.h> | 16 | #include <linux/errno.h> |
17 | #include <linux/kernel_stat.h> | 17 | #include <linux/kernel_stat.h> |
18 | #include <linux/netdevice.h> | 18 | #include <linux/netdevice.h> |
19 | #include <net/net_namespace.h> | ||
19 | 20 | ||
20 | #include "appldata.h" | 21 | #include "appldata.h" |
21 | 22 | ||
@@ -107,7 +108,7 @@ static void appldata_get_net_sum_data(void *data) | |||
107 | tx_dropped = 0; | 108 | tx_dropped = 0; |
108 | collisions = 0; | 109 | collisions = 0; |
109 | read_lock(&dev_base_lock); | 110 | read_lock(&dev_base_lock); |
110 | for_each_netdev(dev) { | 111 | for_each_netdev(&init_net, dev) { |
111 | stats = dev->get_stats(dev); | 112 | stats = dev->get_stats(dev); |
112 | rx_packets += stats->rx_packets; | 113 | rx_packets += stats->rx_packets; |
113 | tx_packets += stats->tx_packets; | 114 | tx_packets += stats->tx_packets; |