diff options
author | rwatson <rwatson@FreeBSD.org> | 2011-08-19 08:29:10 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2011-08-19 08:29:10 +0000 |
commit | b8fd2dd0fde3a036af67a6ffd6ddbc2755167116 (patch) | |
tree | b3014bfb0277a242f487b799d034bf51063a3d9a /sys/dev/usb/usb_request.c | |
parent | 14454847f17719e23a6acb72a60bc5fd71ff35b2 (diff) | |
download | FreeBSD-src-b8fd2dd0fde3a036af67a6ffd6ddbc2755167116.zip FreeBSD-src-b8fd2dd0fde3a036af67a6ffd6ddbc2755167116.tar.gz |
r222015 introduced a new assertion that the size of a fixed-length sbuf
buffer is greater than 1. This triggered panics in at least one spot in
the kernel (the MAC Framework) which passes non-negative, rather than >1
buffer sizes based on the size of a user buffer passed into a system
call. While 0-size buffers aren't particularly useful, they also aren't
strictly incorrect, so loosen the assertion.
Discussed with: phk (fears I might be EDOOFUS but willing to go along)
Spotted by: pho + stress2
Approved by: re (kib)
Diffstat (limited to 'sys/dev/usb/usb_request.c')
0 files changed, 0 insertions, 0 deletions