If the device really becomes free, then I can't
see any reason why not to free it immediately.

That entry to the HCD surely won't be needing to
tie down a refcount after the URB unlink completes;
it doesn't access that field again.  Anyone else
should be tying down their own refcount.

- Dave



----- Original Message ----- 
From: "Benjamin Herrenschmidt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, 7 July, 2000 8:23 AM
Subject: [linux-usb] Other potential problem in usb-ohci.c


> Hi !
> 
> here again, I may be saying crap, but in sohci_unlink_urb,
> usb_dec_dev_use() is called _before_ the call to schedule. Don't that
> mean that the OHCI could potentially be killed while inside the schedule
> call ? Isn't that dangerous ? I would have done that only once the URB
> has actually been removed.
> 
> Ben.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to