aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r--net/core/net-sysfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index ea3bb4c3b87d..914f42b0f039 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -330,7 +330,9 @@ static ssize_t netstat_show(const struct device *d,
330 330
331 read_lock(&dev_base_lock); 331 read_lock(&dev_base_lock);
332 if (dev_isalive(dev)) { 332 if (dev_isalive(dev)) {
333 const struct rtnl_link_stats64 *stats = dev_get_stats(dev); 333 struct rtnl_link_stats64 temp;
334 const struct rtnl_link_stats64 *stats = dev_get_stats(dev, &temp);
335
334 ret = sprintf(buf, fmt_u64, *(u64 *)(((u8 *) stats) + offset)); 336 ret = sprintf(buf, fmt_u64, *(u64 *)(((u8 *) stats) + offset));
335 } 337 }
336 read_unlock(&dev_base_lock); 338 read_unlock(&dev_base_lock);