projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df08ef2
)
Input: keyboard - fix potential out of bound access to key_map
author
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 9 Oct 2008 03:42:26 +0000
(23:42 -0400)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 9 Oct 2008 03:45:36 +0000
(23:45 -0400)
Reported-by: Michal Roszkowski <michal@roszkowski.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/char/keyboard.c
patch
|
blob
|
history
diff --git
a/drivers/char/keyboard.c
b/drivers/char/keyboard.c
index 7b3a212c86b1ab21d5e3d783716ded2787f3729d..de26a978fbdd140aec88179b99c14fae555c467c 100644
(file)
--- a/
drivers/char/keyboard.c
+++ b/
drivers/char/keyboard.c
@@
-1249,7
+1249,7
@@
static void kbd_keycode(unsigned int keycode, int down, int hw_raw)
return;
}
- if (keycode > NR_KEYS)
+ if (keycode >
=
NR_KEYS)
if (keycode >= KEY_BRL_DOT1 && keycode <= KEY_BRL_DOT8)
keysym = K(KT_BRL, keycode - KEY_BRL_DOT1 + 1);
else