Module Name:    src
Committed By:   skrll
Date:           Wed May 30 11:41:08 UTC 2012

Modified Files:
        src/sys/dev/usb: if_urtwn.c

Log Message:
Release the mutex on error in urtwn_alloc_tx_list.

>From jmcneill.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/usb/if_urtwn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/if_urtwn.c
diff -u src/sys/dev/usb/if_urtwn.c:1.1 src/sys/dev/usb/if_urtwn.c:1.2
--- src/sys/dev/usb/if_urtwn.c:1.1	Sun Mar 25 00:11:16 2012
+++ src/sys/dev/usb/if_urtwn.c	Wed May 30 11:41:08 2012
@@ -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 *
 
  fail:
 	urtwn_free_tx_list(sc);
+	mutex_exit(&sc->sc_tx_mtx);
 	return (error);
 }
 

Reply via email to