Commit 1d0990ac authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] parisc /proc/interrupts uninitialised var

From: James Bottomley <James.Bottomley@SteelEye.com>

The compiler justly complains in this:

	        unsigned int regnr = *(loff_t *) v, i;

	        if (regnr == 0) {
	                seq_puts(p, "     ");
	#ifdef CONFIG_SMP
	                for (i = 0; i < NR_CPUS; i++)
	#endif
	                        seq_printf(p, "      CPU%02d ", i);

That i is uninitialised if CONFIG_SMP is not set.
parent 2fbe6496
......@@ -215,7 +215,7 @@ EXPORT_SYMBOL(enable_irq);
int show_interrupts(struct seq_file *p, void *v)
{
#ifdef CONFIG_PROC_FS
unsigned int regnr = *(loff_t *) v, i;
unsigned int regnr = *(loff_t *) v, i = 0;
if (regnr == 0) {
seq_puts(p, " ");
......
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