diff options
| author | skrll <skrll@NetBSD.org> | 2012-05-30 11:41:08 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2012-05-30 11:41:08 +0000 |
| commit | bce5d20f2feb1342c70342a38680f1ac53a24e89 (patch) | |
| tree | 950f257b1b94caa8e5893d74bf8988492d6e41f7 /sys/dev | |
| parent | b6f97316101817f7e973f482abb17612e0614934 (diff) | |
Release the mutex on error in urtwn_alloc_tx_list.
From jmcneill.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/if_urtwn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c index 2e7d703d35c..05098b8eba4 100644 --- a/sys/dev/usb/if_urtwn.c +++ b/sys/dev/usb/if_urtwn.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_urtwn.c,v 1.1 2012/03/25 00:11:16 nonaka Exp $ */ +/* $NetBSD: if_urtwn.c,v 1.2 2012/05/30 11:41:08 skrll Exp $ */ /* $OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $ */ /*- @@ -22,7 +22,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.1 2012/03/25 00:11:16 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.2 2012/05/30 11:41:08 skrll Exp $"); #include <sys/param.h> #include <sys/sockio.h> @@ -594,6 +594,7 @@ urtwn_alloc_tx_list(struct urtwn_softc *sc) fail: urtwn_free_tx_list(sc); + mutex_exit(&sc->sc_tx_mtx); return (error); } |
