On Fri, 5 Dec 2003, Jamie Lokier wrote: > In 2.6.0-test10, usb_physical_reset_device, this call can oops with a > NULL pointer dereference: > > ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), > USB_REQ_SET_CONFIGURATION, 0, > dev->actconfig->desc.bConfigurationValue, 0, > NULL, 0, HZ * USB_CTRL_SET_TIMEOUT); > > This happens when the configuration value is set to zero, so > `dev->actconfig' is NULL. > > Perhaps there are other places which assume this pointer is not NULL, > but this is the bug which bit me several times. > > Enjoy, > -- Jamie
Can you say under what circumstances usb_physical_reset_device was called with dev->actconfig equal to NULL? Or post a stack trace from the resulting oops? Alan Stern ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel