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

From: Chris Heath (chris@heathens.co.nz)
Date: Wed Apr 16 2003 - 19:42:04 EST


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/



This archive was generated by hypermail 2b29 : Wed Apr 23 2003 - 22:00:20 EST