Re: possible race in usb_disable_device()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 3 Aug 2009, Oliver Neukum wrote:

> Am Montag, 3. August 2009 22:07:44 schrieb Alan Stern:
> > > I think you got misled by a red herring.
> >
> > The real problem here is:
> >
> >      1. usb_disable_device() calls usb_disable_endpoint() before
> >         unbinding the driver.  This erases the entries in the endpoint
> >         array.
> 
> Ouch. Thank you. Is this new behavior?

It has been that way for years.  Note that only the pointer entry 
stored in the array gets erased; the usb_host_endpoint structure itself 
is unaffected.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux