cvs commit: src/sys/pci if_dc.c

Giorgos Keramidas keramida at FreeBSD.org
Thu Sep 22 05:46:02 PDT 2005


keramida    2005-09-22 12:46:01 UTC

  FreeBSD src repository (doc committer)

  Modified files:        (Branch: RELENG_6)
    sys/pci              if_dc.c 
  Log:
  MFC 1.167: panic on attach failure...
  % When bus_alloc_resource_any() fails, dc_detach() is called and it
  % attempts to deallocate busdma tags and resources that haven't been
  % allocated yet, causing a panic every time a dc interface fails to
  % attach.  Fix by checking that we really have something to dealloc
  % before calling bus_dma*() functions.
  %
  % Approved by:    jhb
  % MFC after:      1 week
  
  Approved by:    re (kensmith)
  
  Revision   Changes    Path
  1.160.2.4  +11 -5     src/sys/pci/if_dc.c


More information about the cvs-all mailing list