From c46ccefd6f98ef14ab83673df6852bae63e43cb8 Mon Sep 17 00:00:00 2001 From: skrll Date: Wed, 30 May 2012 11:41:08 +0000 Subject: [PATCH] Release the mutex on error in urtwn_alloc_tx_list. From jmcneill. --- sys/dev/usb/if_urtwn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c index 2e7d703d35c8..05098b8eba41 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 -__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 #include @@ -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); }