Re: unitialized variable in 2.4.7 (sym53c8xx, dmi_scan)

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Wed Jul 25 2001 - 16:25:32 EST


> static __init int disable_ide_dma(struct dmi_blacklist *d)
> {
> #ifdef CONFIG_BLK_DEV_IDE
> @@ -169,6 +170,7 @@
> #endif
> return 0;
> }
> +#endif

This just makes it harder to finish the merges

> makes that automatic.
> ===== drivers/scsi/sym53c8xx.c 1.6 vs edited =====
> --- 1.6/drivers/scsi/sym53c8xx.c Thu Jul 5 04:28:16 2001
> +++ edited/drivers/scsi/sym53c8xx.c Wed Jul 25 13:37:10 2001
> @@ -6991,7 +6991,7 @@
>
> static void ncr_soft_reset(ncb_p np)
> {
> - u_char istat;
> + u_char istat=0;
> int i;
>
> if (!(np->features & FE_ISTAT1) || !(INB (nc_istat1) & SRUN))

And this means when we get a real bug with istat not being assigned it
wont be seen.

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



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:24 EST