On Wed, 26 Oct 2005, Franck wrote: > OK, so now the question is why usb_get_dev is needed in > sl811h_urb_enqueue since hcd core take care of doing it ?
hcd.c's goals aren't the same as sl811-hcd.c's. The usb_get_dev in hcd_submit_urb is done in order to guarantee that the usb_device structure isn't deallocated until the URB has been completed. The usb_get_dev in sl811_urb_enqueue is done in order to guarantee that the usb_device structure isn't deallocated until the struct sl811h_ep is released. Those two events happen at different times, so two different usb_get_dev calls are needed. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
