[PATCH][2.5] keyboard.c Fix SAK in raw mode

Chris Heath (chris@heathens.co.nz)
Wed, 16 Apr 2003 20:42:04 -0400


Trivial fix to get the SAK key working in raw and medium raw modes.
Patch is against kernel 2.5.67.

Chris

--- a/drivers/char/keyboard.c 2003-04-12 09:50:18.000000000 -0400
+++ b/drivers/char/keyboard.c 2003-04-13 20:52:42.000000000 -0400
@@ -601,7 +601,7 @@
return;
if ((kbd->kbdmode == VC_RAW ||
kbd->kbdmode == VC_MEDIUMRAW) &&
- value != K_SAK)
+ value != KVAL(K_SAK))
return; /* SAK is allowed even in raw mode */
fn_handler[value](vc, regs);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/