Module Name: src Committed By: jmcneill Date: Fri Jan 11 02:20:41 UTC 2013
Modified Files: src/sys/dev/usb: dwc_otg.c Log Message: clear queued flag when aborting xfer To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 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.6 src/sys/dev/usb/dwc_otg.c:1.7 --- src/sys/dev/usb/dwc_otg.c:1.6 Thu Jan 10 22:15:04 2013 +++ src/sys/dev/usb/dwc_otg.c Fri Jan 11 02:20:41 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: dwc_otg.c,v 1.6 2013/01/10 22:15:04 skrll Exp $ */ +/* $NetBSD: dwc_otg.c,v 1.7 2013/01/11 02:20:41 jmcneill 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.6 2013/01/10 22:15:04 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.7 2013/01/11 02:20:41 jmcneill Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -648,9 +648,10 @@ dwc_otg_abort_xfer(usbd_xfer_handle xfer } mutex_spin_enter(&sc->sc_intr_lock); + dxfer->queued = false; TAILQ_REMOVE(&sc->sc_active, dxfer, xnext); mutex_spin_exit(&sc->sc_intr_lock); - + /* * Step 4: Execute callback. */