Subject: CVS commit: src/sys/arch/xen/xen
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 07/02/2006 16:29:50
Module Name:	src
Committed By:	bouyer
Date:		Sun Jul  2 16:29:50 UTC 2006

Modified Files:
	src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
m_copyback() doesn't adjust m->m_len if the data to copy is smaller than
the mbuf's size. Set it to a proper value before calling m_copyback().
This should fix panics in m_makewritable() reported by several peoples.
While there, add MCLAIM() calls where appropriate, a few more #ifdef DEBUG
checks, and various minor fixes.


To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 src/sys/arch/xen/xen/if_xennet_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.