diff options
author | Vladimir Kondratyev <wulf@FreeBSD.org> | 2022-11-18 23:54:46 +0000 |
---|---|---|
committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2022-11-18 23:54:46 +0000 |
commit | 183088934a6c4384e45ac6d01c04754e0d7a991c (patch) | |
tree | b3cbed3bdda97882020d0ea3e8d22445d886870b /sys/dev/evdev | |
parent | d487cba33d777efb9f6f7d7967ad2eaa629bcb90 (diff) | |
download | src-183088934a6c4384e45ac6d01c04754e0d7a991c.tar.gz src-183088934a6c4384e45ac6d01c04754e0d7a991c.zip |
Diffstat (limited to 'sys/dev/evdev')
-rw-r--r-- | sys/dev/evdev/evdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/evdev/evdev.c b/sys/dev/evdev/evdev.c index a0a039f0b691..2bb365125b5a 100644 --- a/sys/dev/evdev/evdev.c +++ b/sys/dev/evdev/evdev.c @@ -1097,6 +1097,8 @@ evdev_release_client(struct evdev_dev *evdev, struct evdev_client *client) bool evdev_is_grabbed(struct evdev_dev *evdev) { + if (kdb_active || SCHEDULER_STOPPED()) + return (false); /* * The function is intended to be called from evdev-unrelated parts of * code like syscons-compatible parts of mouse and keyboard drivers. |