Module Name:    src
Committed By:   msaitoh
Date:           Fri Feb 15 08:21:21 UTC 2013

Modified Files:
        src/sys/dev/usb [netbsd-6]: dwc_otg.c

Log Message:
Fix a locking error in the last commit for ticket #813.


To generate a diff of this commit:
cvs rdiff -u -r1.45.2.2 -r1.45.2.3 src/sys/dev/usb/dwc_otg.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/dwc_otg.c
diff -u src/sys/dev/usb/dwc_otg.c:1.45.2.2 src/sys/dev/usb/dwc_otg.c:1.45.2.3
--- src/sys/dev/usb/dwc_otg.c:1.45.2.2	Wed Feb 13 01:36:16 2013
+++ src/sys/dev/usb/dwc_otg.c	Fri Feb 15 08:21:21 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: dwc_otg.c,v 1.45.2.2 2013/02/13 01:36:16 riz Exp $	*/
+/*	$NetBSD: dwc_otg.c,v 1.45.2.3 2013/02/15 08:21:21 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.45.2.2 2013/02/13 01:36:16 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.45.2.3 2013/02/15 08:21:21 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -607,6 +607,7 @@ dwc_otg_abort_xfer(usbd_xfer_handle xfer
 			tsleep(&xfer->hcflags, PZERO, "dotgaw", 0);
 		return;
 	}
+	mutex_spin_enter(&sc->sc_intr_lock);
 	xfer->hcflags |= UXFER_ABORTING;
 
 	/*

Reply via email to