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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to