Skip to contentSkip to conversation

s390/diag: fix display of diagnose call statistics

PATCH New Michael Mueller 1 participant 1 message Mar 5, 2020 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390/diag: fix display of diagnose call statistics

Show the full diag statistic table and not just parts of it.

---
 arch/s390/kernel/diag.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/s390/kernel/diag.c +1 -1
index e9dac9a24d3f..61f2b0412345 100644
@@ -84,7 +84,7 @@ static int show_diag_stat(struct seq_file *m, void *v)
 
 static void *show_diag_stat_start(struct seq_file *m, loff_t *pos)
 {
-	return *pos <= nr_cpu_ids ? (void *)((unsigned long) *pos + 1) : NULL;
+	return *pos <= NR_DIAG_STAT ? (void *)((unsigned long) *pos + 1) : NULL;
 }
 
 static void *show_diag_stat_next(struct seq_file *m, void *v, loff_t *pos)
Signature · 1 line
2.17.1