Make sure devices are properly closed in case of an error.
authorratchov <ratchov@openbsd.org>
Fri, 24 Apr 2020 11:33:28 +0000 (11:33 +0000)
committerratchov <ratchov@openbsd.org>
Fri, 24 Apr 2020 11:33:28 +0000 (11:33 +0000)
commitbbbe65dfd743edcc69b5b199f963df6853ae96ca
tree209037de551788dccde38ba301125e8892a84e19
parentc7e9905a7b55580cbcdde055c75b29a0a41941ac
Make sure devices are properly closed in case of an error.

Fixes possible crashes if the contol device fails, while the audio
device continues to work.
usr.bin/sndiod/dev.c
usr.bin/sndiod/dev_sioctl.c
usr.bin/sndiod/siofile.c