cvs commit: src/sys/dev/ed if_ed.c if_ed_pccard.c

Warner Losh imp at FreeBSD.org
Wed Aug 6 22:22:37 UTC 2008


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


More information about the cvs-src mailing list