Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: CVS: cvs.openbsd.org: src

From: Marc Balmer (marcmsys.ch)
Date: Sat Nov 21 2009 - 08:54:16 CST

> CVSROOT: /cvs
> Module name: src
> Changes by: deraadtcvs.openbsd.org 2009/11/21 07:30:35
> Modified files:
> sys/dev/usb : umbg.c
> Log message:
> in the detach function remove our usb task before calling any other
> teardown functions which could potentially sleep (and then, the usb
> task would get called for a half-torn down device)

The timeouts that trigger the usb task are deleted upon entry to the
detach function, so the usb task will not be called after this, not even if
some of the teardown functions would sleep.