summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2020-01-15 20:17:09 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2020-01-15 20:17:09 +0000
commitb030cebf0d81c584e0f34a6804447bceeee5f401 (patch)
treeb00886c26ba62bfcaf9d15ef503121d2129647a1 /usr.sbin
parentd905a43a1ec87eae5e40bfcd1e1f5c4555efd2b6 (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