From 48af4ad178c107d069b7958a037fd3fb4dae9f52 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 18 Aug 2016 11:59:58 +0000 Subject: [PATCH] add a missing splx in an error path ok millert@ stsp@ --- sys/dev/usb/ehci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index b15d873dd1e..0daf622b3ba 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ehci.c,v 1.191 2016/07/20 09:48:07 mpi Exp $ */ +/* $OpenBSD: ehci.c,v 1.192 2016/08/18 11:59:58 jsg Exp $ */ /* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */ /* @@ -2539,8 +2539,10 @@ ehci_alloc_itd(struct ehci_softc *sc) if (freeitd == NULL) { err = usb_allocmem(&sc->sc_bus, EHCI_ITD_SIZE * EHCI_ITD_CHUNK, EHCI_PAGE_SIZE, &dma); - if (err) + if (err) { + splx(s); return (NULL); + } for (i = 0; i < EHCI_ITD_CHUNK; i++) { offs = i * EHCI_ITD_SIZE; -- 2.20.1