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

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 2 Aug 2006 17:41:58 +0000 (UTC)
jhb         2006-08-02 17:41:58 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/ubsec        ubsec.c 
  Log:
  - 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
Received on Wed Aug 02 2006 - 17:41:58 UTC