svn commit: r304430 - head/sys/dev/vt
Ed Maste
emaste at FreeBSD.org
Thu Aug 18 16:22:41 UTC 2016
Author: emaste
Date: Thu Aug 18 16:22:40 2016
New Revision: 304430
URL: https://svnweb.freebsd.org/changeset/base/304430
Log:
vt: fix old keyboard release in CONS_SETKBD
On the first switch we previously released the newly allocated keyboard
instead of the old one. Keyboard state was very confused afterwards for
further keyboard switches.
Submitted by: bde
Modified:
head/sys/dev/vt/vt_core.c
Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c Thu Aug 18 14:10:36 2016 (r304429)
+++ head/sys/dev/vt/vt_core.c Thu Aug 18 16:22:40 2016 (r304430)
@@ -2359,6 +2359,7 @@ skip_thunk:
(void *)vd, vt_kbdevent, vd);
if (i >= 0) {
if (vd->vd_keyboard != -1) {
+ kbd = kbd_get_keyboard(vd->vd_keyboard);
vt_save_kbd_state(vd->vd_curwindow, kbd);
kbd_release(kbd, (void *)vd);
}
More information about the svn-src-head
mailing list