add missing splx in error path
authorjmatthew <jmatthew@openbsd.org>
Sun, 26 Jun 2022 15:25:03 +0000 (15:25 +0000)
committerjmatthew <jmatthew@openbsd.org>
Sun, 26 Jun 2022 15:25:03 +0000 (15:25 +0000)
from Christian Ludwig

sys/dev/usb/if_uaq.c

index d7b9d6d..55180a3 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_uaq.c,v 1.3 2022/04/24 00:04:10 jmatthew Exp $     */
+/*     $OpenBSD: if_uaq.c,v 1.4 2022/06/26 15:25:03 jmatthew Exp $     */
 /*-
  * Copyright (c) 2021 Jonathan Matthew <jonathan@d14n.org>
  * All rights reserved.
@@ -780,6 +780,7 @@ uaq_init(void *xsc)
        if (err) {
                printf("%s: couldn't open interrupt pipe\n",
                    sc->sc_dev.dv_xname);
+               splx(s);
                return;
        }