]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Use m_getcl(), m_get(), and m_gethdr() rather than the older macros for
authorjhb <jhb@FreeBSD.org>
Wed, 2 Aug 2006 17:41:58 +0000 (17:41 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 2 Aug 2006 17:41:58 +0000 (17:41 +0000)
commitb69bfe457d51a5d0df16d26cee10b0b7180b9f19
tree4c66b854c4c01f56c7509b653d0b5fe6c1416da4
parent0cae7b2fc7d061dbb01a8e37ad35aa2f719861fa
- 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)
sys/dev/ubsec/ubsec.c