Allow uvideo_mmap_queue() to fail gracefully when the mmap queue is full;
authormiod <miod@openbsd.org>
Wed, 24 Jun 2015 20:17:28 +0000 (20:17 +0000)
committermiod <miod@openbsd.org>
Wed, 24 Jun 2015 20:17:28 +0000 (20:17 +0000)
commitc6a5d8d44d973208314a087623d21e2f6c94f8e6
tree25322cf963b332641e90a5434c255b86412c8287
parent25ccd42620be4aba606651c0d343074b6234426d
Allow uvideo_mmap_queue() to fail gracefully when the mmap queue is full;
found the hard way by sebastia@ four years ago, and I'd been sitting on that
diff since.

The initial diff was more aggressive and would free the mmap queue upon error,
but jakemsr@ had objections against this behaviour; this diff only fails
gracefully instead of panic'ing.
sys/dev/usb/uvideo.c