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

John Baldwin jhb at
Wed Aug 2 17:41:58 UTC 2006

jhb         2006-08-02 17:41:58 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/ubsec        ubsec.c 
  - Use m_getcl(), m_get(), and m_gethdr() rather than the older macros for
    alloc'ing mbufs so that there is less error handling required.
  - Go ahead and account for the data space in the first mbuf before entering
    the loop to alloc more mbuf's.  This simplifies the loop logic and avoids
    confusing Coverity.
  CID:            817
  Reviewed by:    sam
  Tested by:      pjd
  Found by:       Coverity Prevent (tm)
  Revision  Changes    Path
  1.45      +26 -37    src/sys/dev/ubsec/ubsec.c

More information about the cvs-src mailing list