Fix use-after-free in dev_abort()
authorratchov <ratchov@openbsd.org>
Tue, 2 Feb 2021 11:18:57 +0000 (11:18 +0000)
committerratchov <ratchov@openbsd.org>
Tue, 2 Feb 2021 11:18:57 +0000 (11:18 +0000)
commitce71fe154a8115405e11f057838e87d07748a7d8
tree2bf37725222b7401f163de036d65f26c95ed5ab5
parent1a1120cac9f0b01ab9f6155ab7713e4d682271d2
Fix use-after-free in dev_abort()

Fixes crash that can occur when an usb device is unplugged, found by edd@
usr.bin/sndiod/dev.c