]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFH r275941:
authorpeterj <peterj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 28 Dec 2014 07:14:38 +0000 (07:14 +0000)
committerpeterj <peterj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 28 Dec 2014 07:14:38 +0000 (07:14 +0000)
commit35cdd2e806e2c8829935d06806e95946abf84d2f
tree42d2a0bc27a2680f94cca2d7fae63bbf4182a4ad
parentc7f260b4d2c0c2bd434104007e8930749364e7b2
MFH r275941:
Adjust the test of a KASSERT to better match the intent.

This assertion was added in r246213 as a guard against corrupted mbufs
arriving from drivers, the key distinguishing factor of said mbufs being
that they had a negative length. Given we're in a while loop specifically
designed to skip over zero-length mbufs, panicking on a zero-length mbuf
seems incorrect.

Suggested by: rmacklem
MFH go-ahead: benno
Approved by: grog (co-mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/10@276327 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfs/nfs_commonsubs.c