HomeFreeBSD

Adjust the test of a KASSERT to better match the intent.

Description

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

Details

Provenance
bennoAuthored on
Parents
rS275940: Bump the largest record we can cope with from 1k to 8k. Other users of
Branches
Unknown
Tags
Unknown

Event Timeline