in vnd ioctl error path.
Reported-by: syzbot+6dde3fda33074a256318@syzkaller.appspotmail.com
OK jsg@ anton@
-/* $OpenBSD: vnd.c,v 1.176 2021/12/21 06:12:03 anton Exp $ */
+/* $OpenBSD: vnd.c,v 1.177 2021/12/23 10:09:16 bluhm Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
if ((error = disk_lock(&sc->sc_dk)) != 0)
goto fail;
if (sc->sc_flags & VNF_INITED) {
+ disk_unlock(&sc->sc_dk);
error = EBUSY;
goto fail;
}