Date: Fri, 8 Feb 2013 10:20:01 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r246539 - stable/9/sys/fs/nfs Message-ID: <201302081020.r18AK1Tm047760@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302081020.r18AK1Tm047760>