Date: Sat, 08 Mar 2008 21:51:02 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: rwatson@FreeBSD.org Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/89362: Stale references to freed memory Message-ID: <20080308.215102.-432795252.imp@bsdimp.com> In-Reply-To: <200803082058.m28KwLTr064840@freefall.freebsd.org> References: <200803082058.m28KwLTr064840@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080308.215102.-432795252.imp>