Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern remove trigger happy assertion. in m_adj negative l...



details:   https://anonhg.NetBSD.org/src/rev/8163273881d3
branches:  trunk
changeset: 791390:8163273881d3
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 15 17:48:55 2013 +0000

description:
remove trigger happy assertion. in m_adj negative lengths are valid.

diffstat:

 sys/kern/uipc_mbuf.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r a341e75c1e36 -r 8163273881d3 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c      Fri Nov 15 14:52:11 2013 +0000
+++ b/sys/kern/uipc_mbuf.c      Fri Nov 15 17:48:55 2013 +0000
@@ -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 @@
        struct mbuf *m;
        int count;
 
-       KASSERT(len != M_COPYALL);
        if ((m = mp) == NULL)
                return;
        if (len >= 0) {



Home | Main Index | Thread Index | Old Index