Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2005 14:27:22 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/pci if_sk.c if_skreg.h
Message-ID:  <200503171427.j2HERMAx082726@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
bz          2005-03-17 14:27:22 UTC

  FreeBSD src repository

  Modified files:
    sys/pci              if_sk.c if_skreg.h 
  Log:
  Do not try to free non allocated memory in error case.
  Do our best to plug some memory leaks (VPD data, jumbo memory buffer,...).
  Log if we cannot free because memory still in use[1].
  Change locking to avoid ''acquiring duplicate lock of same
    type: "network driver"'' and potential deadlock. Also seems to fix LOR #063.
  
  [1] This change does not solve problems if buffers are still in use when
      unloading if_sk.ko. There is ongoing work which will address jumbogram
      allocations in a more general way.
  
  PR:             kern/75677 (with changes, no mii fixes in here)
  Tested by:      net, Antoine Brodin (slightly different version)
  Approved by:    rwatson (mentor)
  MFC after:      5 days
  
  Revision  Changes    Path
  1.102     +56 -12    src/sys/pci/if_sk.c
  1.28      +5 -1      src/sys/pci/if_skreg.h



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