Re: [PATCH] More network pci_enable cleanups.

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Sun Feb 11 2001 - 06:12:19 EST


Em Sun, Feb 11, 2001 at 07:12:15AM -0500, Jeff Garzik escreveu:
> davej@suse.de wrote:
> > > > - int cards_found = 0;
> > > > + int cards_found;
> > > Rejected. Introduces bug. That zero is required!
> >
> > Refresh my memory here. I thought unitialised vars go to bss,
> > and get zeroed at boot time ?
>
> cards_found is on the stack, which can contain random crap..

Dave, only static/globals goes to the bss and are thus zeroed, the locals
are in the stack, like Jeff said

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



This archive was generated by hypermail 2b29 : Thu Feb 15 2001 - 21:00:16 EST