diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-throttle.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 9273d0969ebd..5b9c6d5c3636 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c | |||
@@ -1292,6 +1292,9 @@ static u64 tg_prfill_cpu_rwstat(struct seq_file *sf, | |||
1292 | struct blkg_rwstat rwstat = { }, tmp; | 1292 | struct blkg_rwstat rwstat = { }, tmp; |
1293 | int i, cpu; | 1293 | int i, cpu; |
1294 | 1294 | ||
1295 | if (tg->stats_cpu == NULL) | ||
1296 | return 0; | ||
1297 | |||
1295 | for_each_possible_cpu(cpu) { | 1298 | for_each_possible_cpu(cpu) { |
1296 | struct tg_stats_cpu *sc = per_cpu_ptr(tg->stats_cpu, cpu); | 1299 | struct tg_stats_cpu *sc = per_cpu_ptr(tg->stats_cpu, cpu); |
1297 | 1300 | ||