From owner-cvs-src@FreeBSD.ORG Thu Dec 21 19:58:04 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E8F8B16A5B6; Thu, 21 Dec 2006 19:58:04 +0000 (UTC) (envelope-from rrs@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id C127E13C44C; Thu, 21 Dec 2006 19:58:04 +0000 (UTC) (envelope-from rrs@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 kBLJw4m9003458; Thu, 21 Dec 2006 19:58:04 GMT (envelope-from rrs@repoman.freebsd.org) Received: (from rrs@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBLJw4iD003457; Thu, 21 Dec 2006 19:58:04 GMT (envelope-from rrs) Message-Id: <200612211958.kBLJw4iD003457@repoman.freebsd.org> From: Randall Stewart Date: Thu, 21 Dec 2006 19:58:04 +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/kern uipc_mbuf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2006 19:58:05 -0000 rrs 2006-12-21 19:58:04 UTC FreeBSD src repository Modified files: sys/kern uipc_mbuf.c Log: The prepend function did not handle non-pkthdr's correctly. It always called MH_ALIGN for small lengths being prepended (less than MHLEN). This meant that if you did a prepend on a non M_PKTHDR the system would panic with the KASSERT in MH_ALIGN. Instead we are not aware of this and do a MH_ALIGN or M_ALIGN as appropriate. Reviewed by: andre Approved by: gnn Revision Changes Path 1.170 +7 -2 src/sys/kern/uipc_mbuf.c