Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Use usb_rem_task_wait in umcs(4) detach.



details:   https://anonhg.NetBSD.org/src/rev/59b4dc162e90
branches:  trunk
changeset: 834134:59b4dc162e90
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jul 29 02:07:56 2018 +0000

description:
Use usb_rem_task_wait in umcs(4) detach.

diffstat:

 sys/dev/usb/umcs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c105a4bbf01d -r 59b4dc162e90 sys/dev/usb/umcs.c
--- a/sys/dev/usb/umcs.c        Sun Jul 29 02:07:46 2018 +0000
+++ b/sys/dev/usb/umcs.c        Sun Jul 29 02:07:56 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umcs.c,v 1.10 2016/07/07 06:55:42 msaitoh Exp $ */
+/* $NetBSD: umcs.c,v 1.11 2018/07/29 02:07:56 riastradh Exp $ */
 /* $FreeBSD: head/sys/dev/usb/serial/umcs.c 260559 2014-01-12 11:44:28Z hselasky $ */
 
 /*-
@@ -41,7 +41,7 @@
  *
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umcs.c,v 1.10 2016/07/07 06:55:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umcs.c,v 1.11 2018/07/29 02:07:56 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -517,7 +517,7 @@
                kmem_free(sc->sc_intr_buf, sc->sc_intr_buflen);
                sc->sc_intr_pipe = NULL;
        }
-       usb_rem_task(sc->sc_udev, &sc->sc_change_task);
+       usb_rem_task_wait(sc->sc_udev, &sc->sc_change_task, USB_TASKQ_DRIVER);
 
        /* detach children */
        for (i = 0; i < sc->sc_numports; i++) {



Home | Main Index | Thread Index | Old Index