Re: svn commit: r303338 - head/sys/dev/vt

2016-07-26 Thread Ed Maste
On 26 July 2016 at 12:27, Ed Schouten wrote: > Hi Ed, > > 2016-07-26 17:34 GMT+02:00 Ed Maste : >> if (vw == vd->vd_curwindow) { >> + mtx_lock(&Giant); >> kbd = kbd_get_keyboard(vd->vd_keyboard); >> if (kbd != NU

Re: svn commit: r303338 - head/sys/dev/vt

2016-07-26 Thread Ed Schouten
Hi Ed, 2016-07-26 17:34 GMT+02:00 Ed Maste : > if (vw == vd->vd_curwindow) { > + mtx_lock(&Giant); > kbd = kbd_get_keyboard(vd->vd_keyboard); > if (kbd != NULL) > vt_save_kbd_state

svn commit: r303338 - head/sys/dev/vt

2016-07-26 Thread Ed Maste
Author: emaste Date: Tue Jul 26 15:34:26 2016 New Revision: 303338 URL: https://svnweb.freebsd.org/changeset/base/303338 Log: vt: lock Giant around kbd calls in CONS_GETINFO Note that keyboards are stored in an array and are not freed (just "unregistered" by clearing some fields) so a rac