usb: don't wait if dying

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jacob Meuser
Date: Tuesday, December 14, 2010 - 9:41 am

ok?

-- 
jakemsr@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

Index: usb_subr.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/usb_subr.c,v
retrieving revision 1.75
diff -u -p usb_subr.c
--- usb_subr.c	6 Dec 2010 04:30:57 -0000	1.75
+++ usb_subr.c	14 Dec 2010 16:16:32 -0000
@@ -351,6 +351,9 @@ usb_delay_ms(usbd_bus_handle bus, u_int ms)
 void
 usbd_delay_ms(usbd_device_handle dev, u_int ms)
 {
+	if (usbd_is_dying(dev))
+		return;
+
 	usb_delay_ms(dev->bus, ms);
 }
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
usb: don't wait if dying, Jacob Meuser, (Tue Dec 14, 9:41 am)
Re: usb: don't wait if dying, Kenneth R Westerback, (Tue Dec 14, 2:19 pm)
Re: usb: don't wait if dying, Todd T. Fries, (Tue Dec 14, 3:32 pm)