On Tue, 5 Oct 2010, Uwe Kleine-König wrote: > > > /me continues to dig around ... > > > Hmm, usb_hcd_reset_endpoint seems handle .endpoint_reset being NULL. > > > > That's for backward compatibility. I figured it was better to operate > > in a degraded mode than to crash with a NULL pointer exception. :-) > Well, I think letting other people's kernel crash is the only way to > make them fix their code. This code was introduced by 3444b26afa145 in > April 2009. I guess with a NULL pointer exception the last user would > have been found earlier. (Note, I didn't check that mxc was the last > user.) There's another reason for allowing endpoint_reset to be NULL. As I mentioned before, it's optional for non-EHCI drivers. 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