Skip to contentSkip to conversation

input: allow root to inject unknown scan codes

PATCH New Randy Dunlap 1 participant 1 message Jun 21, 2006 Input drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input: allow root to inject unknown scan codes

Allow root to inject unknown scan codes for input device.

http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-dapper.git;a=commitdiff;h=250bc863956a93a8eab7991b0dc7f040eb5d25cc

---
 drivers/input/input.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/input.c +1 -1
@@ -75,7 +75,7 @@ void input_event(struct input_dev *dev, 
 
 		case EV_KEY:
 
-			if (code > KEY_MAX || !test_bit(code, dev->keybit) || !!test_bit(code, dev->key) == value)
+			if (code > KEY_MAX || !!test_bit(code, dev->key) == value)
 				return;
 
 			if (value == 2)