Date: Wed, 6 Aug 2008 22:22:27 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/ed if_ed.c if_ed_pccard.c Message-ID: <200808062222.m76MMZXP013172@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2008-08-06 22:22:27 UTC FreeBSD src repository Modified files: sys/dev/ed if_ed.c if_ed_pccard.c Log: SVN rev 181351 on 2008-08-06 22:22:27Z by imp When the miibus for the AX88x90 or TC5299J cards fails to attach, we would call ed_release_resources() when we should have called ed_detach() to properly undo the effects of prior calls to ed_attach(). This would leave a stray ed interface ifnet alive in the system, which was, well, bad, since we called if_free() on the underlying memory... Fix the ed_detach routine to cope being called in this context now. This should never come up because the miibus is always there. Except for now when it seems to be failing for reasons unknown... That's a different bug that hits at least ed, xl, dc and fxp... Revision Changes Path 1.272 +9 -7 src/sys/dev/ed/if_ed.c 1.115 +1 -1 src/sys/dev/ed/if_ed_pccard.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808062222.m76MMZXP013172>