Adjust the test of a KASSERT to better match the intent.
authorBenno Rice <benno@FreeBSD.org>
Fri, 19 Dec 2014 19:09:22 +0000 (19:09 +0000)
committerBenno Rice <benno@FreeBSD.org>
Fri, 19 Dec 2014 19:09:22 +0000 (19:09 +0000)
commit6d659a5d9bf34dabb20d9c7d111f017bd1fb9230
treee58e0310b6724d2dad83c3b7abb8645e7e3e3bba
parente808299c020f25d822a737dea9c2b4ea1b1d2c50
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.

No objection from: kib
sys/fs/nfs/nfs_commonsubs.c