diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-01-15 20:17:09 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-01-15 20:17:09 +0000 |
commit | b030cebf0d81c584e0f34a6804447bceeee5f401 (patch) | |
tree | b00886c26ba62bfcaf9d15ef503121d2129647a1 /usr.sbin | |
parent | d905a43a1ec87eae5e40bfcd1e1f5c4555efd2b6 (diff) |
Fix off-by-one in ringbuffer code. When we insert items faster than
the hardware is processing them, the write index can catch up to the
read index. We must make sure that our write index stays smaller
than the hardware's read index, thus the difference between both has
to be bigger than 1.
ok tobhe@
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions