When paused (or overrun), the record ring pointers are not incremented
authorratchov <ratchov@openbsd.org>
Tue, 29 Jul 2008 05:59:11 +0000 (05:59 +0000)
committerratchov <ratchov@openbsd.org>
Tue, 29 Jul 2008 05:59:11 +0000 (05:59 +0000)
commit6e1f093620f2da990d9ae21d42086d057f5083e0
tree72f0299cea498c8eb183ef6e8293550e442877d3
parentc050d7dea93605c856bd3a212804146c0166a6ee
When paused (or overrun), the record ring pointers are not incremented
properly in audio_rint(), the periodic boundary conditions aren't met. This
causes, later read(2) to return EFAULT while trying to access unmapped
regions of the kernel address space. Fix this by using the correct pointer
arithmetic.

ok jakemsr@
sys/dev/audio.c