Commit 161c6091 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: keyboard - fix potential out of bound access to key_map

Reported-by: default avatarMichal Roszkowski <michal@roszkowski.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent df08ef27
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment