CVSROOT:        /cvs
Module name:    src
Changes by:     ratc...@cvs.openbsd.org 2020/06/12 09:40:18

Modified files:
        usr.bin/sndiod : dev.c dev.h midi.c midi.h miofile.c siofile.c 

Log message:
On error, drop clients and close the device only if it's still open

Fixes crashes when USB devices are disconnected, caused by an attempt
to close the already closed device: it was closed once when its ref
counter drops to zero (after the last client is disconnected) and once
with an explicit call to dev_close() on the error code-path.

Reply via email to