Re: usb: don't wait if dying

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Todd T. Fries
Date: Tuesday, December 14, 2010 - 3:32 pm

This makes a lot of sense.

Penned by Jacob Meuser on 20101214 10:41.43, we have:
| 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);
|  }

-- 
Todd Fries .. todd@fries.net

 _____________________________________________
|                                             \  1.636.410.0632 (voice)
| Free Daemon Consulting, LLC                 \  1.405.227.9094 (voice)
| http://FreeDaemonConsulting.com             \  1.866.792.3418 (FAX)
| 2525 NW Expy #525, Oklahoma City, OK 73112  \  sip:freedaemon@ekiga.net
| "..in support of free software solutions."  \  sip:4052279094@ekiga.net
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
                                                 
              37E7 D3EB 74D0 8D66 A68D  B866 0326 204E 3F42 004A
                        http://todd.fries.net/pgp.txt
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)