Module Name:    src
Committed By:   skrll
Date:           Thu Nov 14 09:21:30 UTC 2013

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

Log Message:
Deal with M_COPYALL becoming -ve properly in m_copym0.

 I can now mount via nfs again.


To generate a diff of this commit:
cvs rdiff -u -r1.154 -r1.155 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.154 src/sys/kern/uipc_mbuf.c:1.155
--- src/sys/kern/uipc_mbuf.c:1.154	Thu Nov 14 00:50:36 2013
+++ src/sys/kern/uipc_mbuf.c	Thu Nov 14 09:21:30 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uipc_mbuf.c,v 1.154 2013/11/14 00:50:36 christos Exp $	*/
+/*	$NetBSD: uipc_mbuf.c,v 1.155 2013/11/14 09:21:30 skrll 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.154 2013/11/14 00:50:36 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.155 2013/11/14 09:21:30 skrll Exp $");
 
 #include "opt_mbuftrace.h"
 #include "opt_nmbclusters.h"
@@ -749,7 +749,7 @@ m_copym0(struct mbuf *m, int off0, int l
 	}
 	np = &top;
 	top = 0;
-	while (len > 0) {
+	while (len == M_COPYALL || len > 0) {
 		if (m == 0) {
 			if (len != M_COPYALL)
 				panic("m_copym: m == 0, len %d [!COPYALL]",

Reply via email to