Date: Wed, 2 Aug 2006 17:41:58 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/ubsec ubsec.c Message-ID: <200608021741.k72HfwEF082930@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608021741.k72HfwEF082930>
