[OPERA] Another potential error detected by static analysis tool (2.6.4)

From: Zhenmin Li
Date: Fri May 07 2004 - 17:26:15 EST


Version: 2.6.4
Files:
/arch/alpha/kernel/irq.c

--- 539,547 ----
#ifdef CONFIG_SMP
if (i == 0) {
seq_puts(p, " ");
! for (i = 0; i < NR_CPUS; i++)
! if (cpu_online(i))
! seq_printf(p, "CPU%d ", i);
seq_putc(p, '\n');
}
#endif


Maybe change to:
*** 539,547 ****
#ifdef CONFIG_SMP
if (i == 0) {
seq_puts(p, " ");
! for (j = 0; j < NR_CPUS; j++)
! if (cpu_online(j))
! seq_printf(p, "CPU%d ", j);
seq_putc(p, '\n');
}
#endif




OPERA Research Group
University of Illinois at Urbana-Champaign


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/