Ignore USB keyboard driver calls from critical sections.
Reported by: Oliver Pinter <oliver.pntr@gmail.com> MFC after: 1 week
This commit is contained in:
parent
bbd4b4346c
commit
cdea3bef22
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=262972
@ -1908,6 +1908,12 @@ ukbd_ioctl(keyboard_t *kbd, u_long cmd, caddr_t arg)
|
||||
{
|
||||
int result;
|
||||
|
||||
/*
|
||||
* XXX Check of someone is calling us from a critical section:
|
||||
*/
|
||||
if (curthread->td_critnest != 0)
|
||||
return (EDEADLK);
|
||||
|
||||
/*
|
||||
* XXX KDGKBSTATE, KDSKBSTATE and KDSETLED can be called from any
|
||||
* context where printf(9) can be called, which among other things
|
||||
|
Loading…
Reference in New Issue
Block a user