-
Alan Stern authored
A tricky problem the dummy_hcd driver has to solve is keeping track of the usb_device structure that corresponds to a registered gadget. Right now that's not done very robustly. This patch stores the address of the structure when a new URB is submitted and also acquires a reference to make sure that completing the final URB won't deallocate the structure before dummy_hcd is through with it. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
a29c78b8