diff options
Diffstat (limited to 'drivers/parisc')
-rw-r--r-- | drivers/parisc/led.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c index 188bc8496a26..18dff43b8bd2 100644 --- a/drivers/parisc/led.c +++ b/drivers/parisc/led.c | |||
@@ -355,12 +355,13 @@ static __inline__ int led_get_net_activity(void) | |||
355 | rcu_read_lock(); | 355 | rcu_read_lock(); |
356 | for_each_netdev_rcu(&init_net, dev) { | 356 | for_each_netdev_rcu(&init_net, dev) { |
357 | const struct net_device_stats *stats; | 357 | const struct net_device_stats *stats; |
358 | struct rtnl_link_stats64 temp; | ||
358 | struct in_device *in_dev = __in_dev_get_rcu(dev); | 359 | struct in_device *in_dev = __in_dev_get_rcu(dev); |
359 | if (!in_dev || !in_dev->ifa_list) | 360 | if (!in_dev || !in_dev->ifa_list) |
360 | continue; | 361 | continue; |
361 | if (ipv4_is_loopback(in_dev->ifa_list->ifa_local)) | 362 | if (ipv4_is_loopback(in_dev->ifa_list->ifa_local)) |
362 | continue; | 363 | continue; |
363 | stats = dev_get_stats(dev); | 364 | stats = dev_get_stats(dev, &temp); |
364 | rx_total += stats->rx_packets; | 365 | rx_total += stats->rx_packets; |
365 | tx_total += stats->tx_packets; | 366 | tx_total += stats->tx_packets; |
366 | } | 367 | } |