diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-11-19 19:31:04 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-11-19 19:31:04 +0100 |
commit | 864ee6cb22fd64c1f4fba8ea3f390ffd8816b563 (patch) | |
tree | 74e41ec9b5ceb47ab9d704ece42d603df390370c /drivers/input/input.c | |
parent | Merge branch 'drm-intel-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
parent | Input: fix typo in keycode validation supporting large scancodes (diff) | |
download | linux-864ee6cb22fd64c1f4fba8ea3f390ffd8816b563.tar.xz linux-864ee6cb22fd64c1f4fba8ea3f390ffd8816b563.zip |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
Input: fix typo in keycode validation supporting large scancodes
Input: aiptek - tighten up permissions on sysfs attributes
Input: sysrq - pass along lone Alt + SysRq
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 90b7ecfb6257..db409d6bd5d2 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -752,7 +752,7 @@ static int input_default_setkeycode(struct input_dev *dev, if (index >= dev->keycodemax) return -EINVAL; - if (dev->keycodesize < sizeof(dev->keycode) && + if (dev->keycodesize < sizeof(ke->keycode) && (ke->keycode >> (dev->keycodesize * 8))) return -EINVAL; |