Always cleanup the debug reader flags when closing the keyboard device, not only when the very last device ist closed.
This commit is contained in:
parent
da6ab904f8
commit
268dde32de
@ -388,14 +388,14 @@ keyboard_close(void *_cookie)
|
||||
|
||||
atomic_and(&ps2_device[PS2_DEVICE_KEYB].flags, ~PS2_FLAG_ENABLED);
|
||||
|
||||
if (cookie->is_reader)
|
||||
sHasKeyboardReader = false;
|
||||
if (cookie->is_debugger)
|
||||
sHasDebugReader = false;
|
||||
|
||||
sKeyboardIds[0] = sKeyboardIds[1] = 0;
|
||||
}
|
||||
|
||||
if (cookie->is_reader)
|
||||
sHasKeyboardReader = false;
|
||||
if (cookie->is_debugger) {
|
||||
sHasDebugReader = false;
|
||||
|
||||
TRACE("ps2: keyboard_close done\n");
|
||||
return B_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user