diff options
Diffstat (limited to 'net/sched/sch_mqprio.c')
-rw-r--r-- | net/sched/sch_mqprio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_mqprio.c b/net/sched/sch_mqprio.c index 37e7d25d21f1..8917372fddc6 100644 --- a/net/sched/sch_mqprio.c +++ b/net/sched/sch_mqprio.c | |||
@@ -355,7 +355,7 @@ static int mqprio_dump_class_stats(struct Qdisc *sch, unsigned long cl, | |||
355 | } | 355 | } |
356 | /* Reclaim root sleeping lock before completing stats */ | 356 | /* Reclaim root sleeping lock before completing stats */ |
357 | spin_lock_bh(d->lock); | 357 | spin_lock_bh(d->lock); |
358 | if (gnet_stats_copy_basic(d, &bstats) < 0 || | 358 | if (gnet_stats_copy_basic(d, NULL, &bstats) < 0 || |
359 | gnet_stats_copy_queue(d, &qstats) < 0) | 359 | gnet_stats_copy_queue(d, &qstats) < 0) |
360 | return -1; | 360 | return -1; |
361 | } else { | 361 | } else { |
@@ -363,7 +363,7 @@ static int mqprio_dump_class_stats(struct Qdisc *sch, unsigned long cl, | |||
363 | 363 | ||
364 | sch = dev_queue->qdisc_sleeping; | 364 | sch = dev_queue->qdisc_sleeping; |
365 | sch->qstats.qlen = sch->q.qlen; | 365 | sch->qstats.qlen = sch->q.qlen; |
366 | if (gnet_stats_copy_basic(d, &sch->bstats) < 0 || | 366 | if (gnet_stats_copy_basic(d, NULL, &sch->bstats) < 0 || |
367 | gnet_stats_copy_queue(d, &sch->qstats) < 0) | 367 | gnet_stats_copy_queue(d, &sch->qstats) < 0) |
368 | return -1; | 368 | return -1; |
369 | } | 369 | } |