Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/pci



It might be worth it to look for more of these. One way to reveal them
might be a debug flag that zeros the stack after use/at times.

Perry

Steve Woodford <scw%netbsd.org@localhost> writes:
> Module Name:  src
> Committed By: scw
> Date:         Mon Sep 29 14:10:35 UTC 2003
> 
> Modified Files:
>       src/sys/dev/pci: if_wi_pci.c
> 
> Log Message:
> Copy our pci_chipset_tag_t into wi_pci_softc instead of a pointer
> to pci_attach_args. The latter is allocated on the stack during auto-
> configuration and so will not be valid after that time.
> 
> It's amazing how the old code worked for so long. I guess pci_attach_args
> is allocated deep in pid#0's kernel stack on most platforms.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.25 -r1.26 src/sys/dev/pci/if_wi_pci.c
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 

-- 
Perry E. Metzger                perry%piermont.com@localhost



Home | Main Index | Thread Index | Old Index