kern/89362: Stale references to freed memory

M. Warner Losh imp at bsdimp.com
Sun Mar 9 04:52:00 UTC 2008


Don't set interrupt handlers in the probe routine.  That's not allowed
as you cannot count on side effects in the probe routine.  It might be
called multiple times.  softc is freed between probe and attach to
keep people from doing this.

The device_get_name*() calls definitely cannot be cached.

Warner


More information about the freebsd-bugs mailing list