and attach_all_mididevs(). this ensures unbind_all_jacks() and
usbd_deactivate() happen for both cases.
ok ratchov@
-/* $OpenBSD: umidi.c,v 1.46 2017/12/30 23:08:29 guenther Exp $ */
+/* $OpenBSD: umidi.c,v 1.47 2018/09/06 09:48:23 miko Exp $ */
/* $NetBSD: umidi.c,v 1.16 2002/07/11 21:14:32 augustss Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
}
err = attach_all_mididevs(sc);
if (err!=USBD_NORMAL_COMPLETION) {
+ unbind_all_jacks(sc);
free_all_jacks(sc);
free_all_endpoints(sc);
+ goto error;
}
#ifdef UMIDI_DEBUG