mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 17:38:37 +08:00
Update to FreeBSD head 2018-11-15
Git mirror commit a18b0830c4be01b39489a891b63d6023ada6358a. Update #3472.
This commit is contained in:
@@ -351,6 +351,19 @@ evdev_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag,
|
||||
if (client->ec_revoked || evdev == NULL)
|
||||
return (ENODEV);
|
||||
|
||||
/*
|
||||
* Fix evdev state corrupted with discarding of kdb events.
|
||||
* EVIOCGKEY and EVIOCGLED ioctls can suffer from this.
|
||||
*/
|
||||
if (evdev->ev_kdb_active) {
|
||||
EVDEV_LOCK(evdev);
|
||||
if (evdev->ev_kdb_active) {
|
||||
evdev->ev_kdb_active = false;
|
||||
evdev_restore_after_kdb(evdev);
|
||||
}
|
||||
EVDEV_UNLOCK(evdev);
|
||||
}
|
||||
|
||||
/* file I/O ioctl handling */
|
||||
switch (cmd) {
|
||||
case FIOSETOWN:
|
||||
|
Reference in New Issue
Block a user