mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 6 additions and 0 deletions
|
|
@ -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 a new issue