Module Name:    src
Committed By:   riastradh
Date:           Sun Jul 29 02:00:07 UTC 2018

Modified Files:
        src/sys/dev/usb: if_atu.c

Log Message:
Use usb_rem_task_wait in atu(4).


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/dev/usb/if_atu.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/if_atu.c
diff -u src/sys/dev/usb/if_atu.c:1.61 src/sys/dev/usb/if_atu.c:1.62
--- src/sys/dev/usb/if_atu.c:1.61	Tue Jun 26 06:48:02 2018
+++ src/sys/dev/usb/if_atu.c	Sun Jul 29 02:00:07 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_atu.c,v 1.61 2018/06/26 06:48:02 msaitoh Exp $ */
+/*	$NetBSD: if_atu.c,v 1.62 2018/07/29 02:00:07 riastradh Exp $ */
 /*	$OpenBSD: if_atu.c,v 1.48 2004/12/30 01:53:21 dlg Exp $ */
 /*
  * Copyright (c) 2003, 2004
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.61 2018/06/26 06:48:02 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.62 2018/07/29 02:00:07 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -2235,7 +2235,7 @@ atu_stop(struct ifnet *ifp, int disable)
 	ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
 	ifp->if_timer = 0;
 
-	usb_rem_task(sc->atu_udev, &sc->sc_task);
+	usb_rem_task_wait(sc->atu_udev, &sc->sc_task, USB_TASKQ_DRIVER);
 	ieee80211_new_state(ic, IEEE80211_S_INIT, -1);
 
 	/* Stop transfers. */

Reply via email to