On Fri, Jan 20, 2012 at 3:08 PM, Christian Ehrhardt
<[email protected]> wrote:
> Hi!
>
> the ix(4)-Driver stores a pointer to the pci_attach_args structure (as
> passed to ixgbe_attach) in its softc. However, the pci_attach_args
> structure lives on the stack somewhere in autoconf, i.e. its contents are
> undefined after ixgbe_attach returns.
>
> However, the pointer to that data remains in ix_softc and is used at least
> in ixgbe_detach. The diff below changes this by storing a copy of the
> pci_attach_args in ix_softc.
>
> Tested (with a slightly modified source tree) on x86.
>
>    regards    Christian
>

yes, i've noticed it today when was working on igb.  thankfully
it wasn't really used in runtime.  thanks a lot for the diff!

Reply via email to