Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Release the mutex on error in urtwn_alloc_tx_list.



details:   https://anonhg.NetBSD.org/src/rev/8a818afdf40c
branches:  trunk
changeset: 779468:8a818afdf40c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed May 30 11:41:08 2012 +0000

description:
Release the mutex on error in urtwn_alloc_tx_list.

>From jmcneill.

diffstat:

 sys/dev/usb/if_urtwn.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 09aa85675311 -r 8a818afdf40c sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Wed May 30 08:05:12 2012 +0000
+++ b/sys/dev/usb/if_urtwn.c    Wed May 30 11:41:08 2012 +0000
@@ -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 @@
 
  fail:
        urtwn_free_tx_list(sc);
+       mutex_exit(&sc->sc_tx_mtx);
        return (error);
 }
 



Home | Main Index | Thread Index | Old Index