Source-Changes-HG archive

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

src: change the comment



details:   https://anonhg.NetBSD.org/src/rev/fa6a66332119
branches:  trunk
changeset: 318267:fa6a66332119
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Apr 17 07:58:31 2018 +0000
description:
change the comment

diffstat:

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

diffs (31 lines):

diff -r 567fe786b755 -r fa6a66332119 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c      Tue Apr 17 07:41:34 2018 +0000
+++ b/sys/kern/uipc_mbuf.c      Tue Apr 17 07:58:31 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_mbuf.c,v 1.190 2018/04/17 07:41:34 maxv Exp $     */
+/*     $NetBSD: uipc_mbuf.c,v 1.191 2018/04/17 07:58:31 maxv 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.190 2018/04/17 07:41:34 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.191 2018/04/17 07:58:31 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_mbuftrace.h"
@@ -1913,7 +1913,11 @@
                if (__predict_false(n->m_type == MT_FREE)) {
                        panic("%s: mbuf already freed (n = %p)", __func__, n);
                }
-#if 0  /* Causing PR/53189 */
+#if 0
+               /*
+                * This ought to be a rule of the mbuf API. Unfortunately,
+                * many places don't respect that rule.
+                */
                if (__predict_false((n != m) && (n->m_flags & M_PKTHDR) != 0)) {
                        panic("%s: M_PKTHDR set on secondary mbuf", __func__);
                }



Home | Main Index | Thread Index | Old Index