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:
czeidler 2012-01-21 17:33:24 +13:00
parent da6ab904f8
commit 268dde32de

View File

@ -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;
}