svn commit: r246539 - stable/9/sys/fs/nfs
Konstantin Belousov
kib at FreeBSD.org
Fri Feb 8 10:20:01 UTC 2013
Author: kib
Date: Fri Feb 8 10:20:00 2013
New Revision: 246539
URL: http://svnweb.freebsd.org/changeset/base/246539
Log:
MFC r246213:
Assert that the mbuf in the chain has sane length.
Modified:
stable/9/sys/fs/nfs/nfs_commonsubs.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/fs/ (props changed)
Modified: stable/9/sys/fs/nfs/nfs_commonsubs.c
==============================================================================
--- stable/9/sys/fs/nfs/nfs_commonsubs.c Fri Feb 8 09:54:53 2013 (r246538)
+++ stable/9/sys/fs/nfs/nfs_commonsubs.c Fri Feb 8 10:20:00 2013 (r246539)
@@ -199,6 +199,7 @@ nfsm_mbufuio(struct nfsrv_descript *nd,
}
mbufcp = NFSMTOD(mp, caddr_t);
len = mbuf_len(mp);
+ KASSERT(len > 0, ("len %d", len));
}
xfer = (left > len) ? len : left;
#ifdef notdef
More information about the svn-src-stable-9
mailing list