From owner-cvs-all@FreeBSD.ORG Wed Aug 2 17:41:58 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C616916A4DE; Wed, 2 Aug 2006 17:41:58 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 766B743D79; Wed, 2 Aug 2006 17:41:58 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k72Hfwkd082931; Wed, 2 Aug 2006 17:41:58 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k72HfwEF082930; Wed, 2 Aug 2006 17:41:58 GMT (envelope-from jhb) Message-Id: <200608021741.k72HfwEF082930@repoman.freebsd.org> From: John Baldwin Date: Wed, 2 Aug 2006 17:41:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/ubsec ubsec.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 17:41:58 -0000 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