git: e68d76c054d2 - main - hkbd: Fix typo which disables keyboard input in kdb
Vladimir Kondratyev
wulf at FreeBSD.org
Sat Apr 24 19:02:54 UTC 2021
The branch main has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=e68d76c054d25490195a99a25329ddca1467244b
commit e68d76c054d25490195a99a25329ddca1467244b
Author: Vladimir Kondratyev <wulf at FreeBSD.org>
AuthorDate: 2021-04-24 18:49:27 +0000
Commit: Vladimir Kondratyev <wulf at FreeBSD.org>
CommitDate: 2021-04-24 19:01:14 +0000
hkbd: Fix typo which disables keyboard input in kdb
Reported by: Greg V
MFC after: 1 week
---
sys/dev/hid/hkbd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/hid/hkbd.c b/sys/dev/hid/hkbd.c
index 775ad677f4de..55eba6d321ea 100644
--- a/sys/dev/hid/hkbd.c
+++ b/sys/dev/hid/hkbd.c
@@ -917,7 +917,7 @@ hkbd_attach(device_t dev)
/* interrupt handler will be called with hkbd mutex taken */
hidbus_set_lock(dev, &sc->sc_mtx);
/* interrupt handler can be called during panic */
- hidbus_set_flags(dev, hidbus_get_flags(dev) & HIDBUS_FLAG_CAN_POLL);
+ hidbus_set_flags(dev, hidbus_get_flags(dev) | HIDBUS_FLAG_CAN_POLL);
/* setup default keyboard maps */
More information about the dev-commits-src-all
mailing list