cvs commit: src/sys/dev/pci pci.c

Warner Losh imp at FreeBSD.org
Fri Oct 28 22:52:18 PDT 2005


imp         2005-10-29 05:52:18 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/pci          pci.c 
  Log:
  MFp4: When doing lazy allocation, it turns out that we need to record the
  actual resource values we received from the system rather than the range
  we requested.  Since we request a range starting at 0, we would record
  that number.  Later, since this == 0, we'd allocate again.  However,
  we wouldn't write the new resource into the BAR.  This resulted in
  a resource leak as well as a BAR that couldn't access the resource at
  all since rman_get_start, et al, were wrong.
  
  MFC After: 1 week (assuming RELENG_6 is open for business)
  
  Revision  Changes    Path
  1.303     +3 -0      src/sys/dev/pci/pci.c


More information about the cvs-src mailing list