Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146195488
D27750.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
632 B
Referenced Files
None
Subscribers
None
D27750.diff
View Options
diff --git a/sys/dev/usb/input/ukbd.c b/sys/dev/usb/input/ukbd.c
--- a/sys/dev/usb/input/ukbd.c
+++ b/sys/dev/usb/input/ukbd.c
@@ -845,11 +845,6 @@
if (!any)
break;
-#ifdef EVDEV_SUPPORT
- if (sc->sc_evdev != NULL)
- evdev_push_leds(sc->sc_evdev, sc->sc_leds);
-#endif
-
/* range check output report length */
len = sc->sc_led_size;
if (len > (UKBD_BUFFER_SIZE - 1))
@@ -1973,6 +1968,11 @@
UKBD_LOCK_ASSERT();
DPRINTF("leds=0x%02x\n", leds);
+#ifdef EVDEV_SUPPORT
+ if (sc->sc_evdev != NULL)
+ evdev_push_leds(sc->sc_evdev, leds);
+#endif
+
sc->sc_leds = leds;
sc->sc_flags |= UKBD_FLAG_SET_LEDS;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 3:52 PM (4 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29118741
Default Alt Text
D27750.diff (632 B)
Attached To
Mode
D27750: ukbd(4): Push LED events in ioctl handler rather than in xfer callback
Attached
Detach File
Event Timeline
Log In to Comment