FreeBSD Bugzilla – Attachment 222178 Details for
Bug 253249
USB keyboard: repeated and out of order characters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to filter out USB keyboard packets with only "key roll over" errors
patch-ubkd.c (text/plain), 524 bytes, created by
Jan Martin Mikkelsen
on 2021-02-05 13:03:45 UTC
(
hide
)
Description:
Patch to filter out USB keyboard packets with only "key roll over" errors
Filename:
MIME Type:
Creator:
Jan Martin Mikkelsen
Created:
2021-02-05 13:03:45 UTC
Size:
524 bytes
patch
obsolete
>--- sys/dev/usb/input/ukbd.c 2021-02-05 09:34:03.000000000 1100 >+++ sys/dev/usb/input/ukbd.c 2021-02-05 09:34:03.000000000 1100 >@@ -682,6 +682,17 @@ > /* get data */ > usbd_copy_out(pc, offset, sc->sc_buffer, len); > >+ if (len == 8 && sc->sc_buffer[0] == 0) { >+ for (i = 2; i != 8; ++i) >+ if (sc->sc_buffer[i] != 1) >+ break; >+ >+ if (i == 8) { >+ DPRINTF("Ignoring key rollover packet\n"); >+ goto tr_setup; >+ } >+ } >+ > /* clear temporary storage */ > memset(&sc->sc_ndata, 0, sizeof(sc->sc_ndata)); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253249
:
222162
|
222163
| 222178 |
222185
|
222202