--- - branch: MAIN date: Fri Dec 31 14:24:06 UTC 2021 files: - new: '1.156' old: '1.155' path: src/sys/dev/usb/ukbd.c pathrev: src/sys/dev/usb/ukbd.c@1.156 type: modified id: 20211231T142406Z.2e52b8a37f762985bf261185f38ec891bb727876 log: | ukbd(4): Avoid races in LED setting on attach. - Don't reuse sc_delay for LED task -- a keyboard interrupt shortly after attach might reset sc_delay so that the LEDs never get turned back off. - Don't turn the LEDs back off after attach if something else has already changed them by the time the callout fires. (And make sure to callout_halt before done this time!) module: src subject: 'CVS commit: src/sys/dev/usb' unixtime: '1640960646' user: riastradh