On Wed, 29 Jun 2011, David Herrmann wrote: > But, thanks to your hint, I looked at hid_hw_start() again and as far > as I can see the synchronization issue exists there, too. > The ll_driver->start() function is called first and after that, the > input instance is registered. > If the ll_driver reports an event before the input instance is > registered, the hidinput/other-driver will call input_event() on an > invalid input instance (probably even a NULL dereference). > This may not be a problem for usbhid, because usbhid_open() has to be > called first, however, hidp (bluetooth hid) ignores the *_open() > callback and therefore may fail. Indeed, this looks like a proper analysis. Thanks a lot for looking into it. Are you planning on submitting the fix for that? Otherwise I'll add it to my TODO list, independently on the wiimote driver. Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html