diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-07-31 15:26:26 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-07-31 15:26:26 +0000 |
commit | 6960c6b7f96163e79aa75b0ef330c8c13fc523bd (patch) | |
tree | 8e0e032c4f1eb24d4ba1679d80005cbf9ef2c97f /sys/altq | |
parent | f2e6d8b2683777ebbb87b4ba5a457be2e7a7fafb (diff) |
- Don't relay on bFormatIndex as an internal array index, since this
field is unreliable and can start with any number. Use an own internal
array index instead.
- If the read buffer is too small, return a propper error to the calling
functions. Just check the buffer size if we use the read(2) method since
it doesn't affect mmap(2).
Fixes kernel crashes seen with the M$ LifeCam NX-6000 and internal
(laptop) Sonix chipsets.
Tested by jcs@ (Sonix) and myself (NX-6000).
OK deraadt@
Diffstat (limited to 'sys/altq')
0 files changed, 0 insertions, 0 deletions