Commit 016b1894 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix /proc/stat off-by-one

I should have stayed in bed.
parent 8ec36e3e
......@@ -416,7 +416,7 @@ int show_stat(struct seq_file *p, void *v)
seq_printf(p, "intr %u", sum);
#if !defined(CONFIG_PPC64) && !defined(CONFIG_ALPHA)
for (i = 0; i <= NR_IRQS; i++)
for (i = 0; i < NR_IRQS; i++)
seq_printf(p, " %u", kstat_irqs(i));
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment