Source-Changes-HG archive

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

[src/netbsd-6]: src/sys/dev/usb Fix a locking error in the last commit for ti...



details:   https://anonhg.NetBSD.org/src/rev/6bc7f0757f84
branches:  netbsd-6
changeset: 775698:6bc7f0757f84
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Feb 15 08:21:21 2013 +0000

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

diffstat:

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

diffs (26 lines):

diff -r 92aed7eb7d8a -r 6bc7f0757f84 sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c     Fri Feb 15 03:36:32 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c     Fri Feb 15 08:21:21 2013 +0000
@@ -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 @@
                        tsleep(&xfer->hcflags, PZERO, "dotgaw", 0);
                return;
        }
+       mutex_spin_enter(&sc->sc_intr_lock);
        xfer->hcflags |= UXFER_ABORTING;
 
        /*



Home | Main Index | Thread Index | Old Index