diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-09-04 00:55:30 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-09-04 00:55:30 -0700 |
| commit | 016b189409b4ae5fbdc75f19de2a2c4bbb4b7377 (patch) | |
| tree | 0aba6add9b99e457987a8a19a79bc44c30da4cc6 | |
| parent | 8ec36e3ee81505f86f017995eaa28c32ccf0a786 (diff) | |
[PATCH] Fix /proc/stat off-by-one
I should have stayed in bed.
| -rw-r--r-- | fs/proc/proc_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index b580465fa08f..e042f16e8764 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c @@ -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 |
