[parisc-linux] Re: Fix for uninitialised variable in new seq_file code for arch/parisc/ikernel/rq.c

Andrew Morton akpm at osdl.org
Tue Dec 30 14:42:16 MST 2003


James Bottomley <James.Bottomley at SteelEye.com> wrote:
>
> --- 1.20/arch/parisc/kernel/irq.c	Mon Dec 29 15:37:39 2003
> +++ edited/irq.c	Tue Dec 30 14:12:43 2003
> @@ -215,7 +215,7 @@
>  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, "     ");

Thanks, I'll add that to today's batch.


More information about the parisc-linux mailing list