Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2005 17:51:39 +0000 (UTC)
From:      Giorgos Keramidas <keramida@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/pci if_dc.c
Message-ID:  <200509151751.j8FHpdVb004787@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
keramida    2005-09-15 17:51:39 UTC

  FreeBSD src repository (doc committer)

  Modified files:
    sys/pci              if_dc.c 
  Log:
  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
  
  Revision  Changes    Path
  1.167     +11 -5     src/sys/pci/if_dc.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509151751.j8FHpdVb004787>