On Fri, Oct 29, 2004 at 04:35:39PM -0400, Alan Stern wrote:
> Greg:
> 
> This patch contains changes to usbcore making the core responsible for
> deallocating memory for usb_hcd structures, rather than calling back into
> the host controller drivers.  This solves a long-standing oops, since the
> drivers may have been unloaded from memory by the time the release routine
> is called.  (There probably are some Bugzilla entries caused by this, but
> I don't know which ones.)
> 
> To really fix this up properly will require merging the HCD "glue" layer 
> into the higher core structures.  As things stand now, a usb_hcd contains 
> a usb_bus member, and the usb_bus is associated with a class_device: when 
> the class_device is released the usb_hcd gets deallocated.  It's awkward 
> in that neither the usb_hcd nor the usb_bus has its own reference count, 
> and the class_device is created when the bus is registered (not when it is 
> initialized).
> 
> Please apply.

Applied, thanks.

greg k-h



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to