projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
HDMI: add a helper function for config hdmi audio.
[firefly-linux-kernel-4.4.55.git]
/
block
/
blk-throttle.c
diff --git
a/block/blk-throttle.c
b/block/blk-throttle.c
index 31146225f3d078fb5326e30195a0fa138f1f3e5a..7cddfe6baf664ee249fc1eaa959584ae48b52e34 100644
(file)
--- a/
block/blk-throttle.c
+++ b/
block/blk-throttle.c
@@
-942,6
+942,9
@@
static u64 tg_prfill_cpu_rwstat(struct seq_file *sf,
struct blkg_rwstat rwstat = { }, tmp;
int i, cpu;
+ if (tg->stats_cpu == NULL)
+ return 0;
+
for_each_possible_cpu(cpu) {
struct tg_stats_cpu *sc = per_cpu_ptr(tg->stats_cpu, cpu);