Module Name: src Committed By: snj Date: Fri Oct 13 08:11:20 UTC 2017
Modified Files: src/sys/dev/usb [netbsd-7]: uhidev.c ukbd.c Log Message: Pull up following revision(s) (requested by jakllsch in ticket #1503): sys/dev/usb/uhidev.c: revision 1.71 sys/dev/usb/ukbd.c: revision 1.137-1.138 Fix memory leak in report parsing error paths. -- Support more varieties of USB keyboard reports. The previous code asssumed reports would closely match the Bootstrap Keyboard Protocol. This is no longer always the case, particularly with higher-end keyboards. -- Always try to set USB HID devices into Report Protocol. (Unless the device is known to be quirky.) Some of the most-widely-compatible methods of implementing USB Keyboard NKRO depend on this Request to function as designed. Issuing this Request is recommended by the HID 1.11 spec (7.2.6): ... "the host should not make any assumptions about the device's state and should set the desired protocol whenever initializing a device." To generate a diff of this commit: cvs rdiff -u -r1.61.2.3 -r1.61.2.4 src/sys/dev/usb/uhidev.c cvs rdiff -u -r1.129.4.2 -r1.129.4.3 src/sys/dev/usb/ukbd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.