Module Name: src
Committed By: christos
Date: Fri Nov 15 17:48:55 UTC 2013
Modified Files:
src/sys/kern: uipc_mbuf.c
Log Message:
remove trigger happy assertion. in m_adj negative lengths are valid.
To generate a diff of this commit:
cvs rdiff -u -r1.156 -r1.157 src/sys/kern/uipc_mbuf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/uipc_mbuf.c
diff -u src/sys/kern/uipc_mbuf.c:1.156 src/sys/kern/uipc_mbuf.c:1.157
--- src/sys/kern/uipc_mbuf.c:1.156 Thu Nov 14 13:54:40 2013
+++ src/sys/kern/uipc_mbuf.c Fri Nov 15 12:48:55 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbuf.c,v 1.156 2013/11/14 18:54:40 christos Exp $ */
+/* $NetBSD: uipc_mbuf.c,v 1.157 2013/11/15 17:48:55 christos Exp $ */
/*-
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.156 2013/11/14 18:54:40 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.157 2013/11/15 17:48:55 christos Exp $");
#include "opt_mbuftrace.h"
#include "opt_nmbclusters.h"
@@ -940,7 +940,6 @@ m_adj(struct mbuf *mp, int req_len)
struct mbuf *m;
int count;
- KASSERT(len != M_COPYALL);
if ((m = mp) == NULL)
return;
if (len >= 0) {