Module Name:    src
Committed By:   christos
Date:           Fri Sep 20 19:13:39 UTC 2013

Modified Files:
        src/sys/kern: uipc_mbuf.c

Log Message:
mark mbuf as free when we return it to the pool (Beverly Schwartz)


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 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.151 src/sys/kern/uipc_mbuf.c:1.152
--- src/sys/kern/uipc_mbuf.c:1.151	Thu Jun 27 21:23:05 2013
+++ src/sys/kern/uipc_mbuf.c	Fri Sep 20 15:13:39 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uipc_mbuf.c,v 1.151 2013/06/28 01:23:05 matt Exp $	*/
+/*	$NetBSD: uipc_mbuf.c,v 1.152 2013/09/20 19:13:39 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.151 2013/06/28 01:23:05 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.152 2013/09/20 19:13:39 christos Exp $");
 
 #include "opt_mbuftrace.h"
 #include "opt_nmbclusters.h"
@@ -1735,6 +1735,7 @@ m_ext_free(struct mbuf *m)
 		}
 	}
 	if (dofree) {
+		m->m_type = MT_FREE;
 		pool_cache_put(mb_cache, m);
 	}
 }

Reply via email to