Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/dwc2 Stop the callout if the transfer didn'...



details:   https://anonhg.NetBSD.org/src/rev/1dea5c2d0584
branches:  trunk
changeset: 342448:1dea5c2d0584
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Dec 22 14:31:36 2015 +0000

description:
Stop the callout if the transfer didn't get enqueued

diffstat:

 sys/external/bsd/dwc2/dwc2.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 500988604a5e -r 1dea5c2d0584 sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c      Tue Dec 22 14:29:28 2015 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c      Tue Dec 22 14:31:36 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc2.c,v 1.37 2015/08/30 13:02:42 skrll Exp $  */
+/*     $NetBSD: dwc2.c,v 1.38 2015/12/22 14:31:36 skrll Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.37 2015/08/30 13:02:42 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.38 2015/12/22 14:31:36 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -1425,6 +1425,7 @@
        return USBD_IN_PROGRESS;
 
 fail2:
+       callout_stop(&xfer->timeout_handle);
        dwc2_urb->priv = NULL;
        mutex_spin_exit(&hsotg->lock);
        pool_cache_put(sc->sc_qtdpool, qtd);



Home | Main Index | Thread Index | Old Index