]> err.no Git - systemd/commit
keymap: continue reading keymap after invalid scancodes
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 24 Mar 2011 15:33:54 +0000 (16:33 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 24 Mar 2011 15:33:54 +0000 (16:33 +0100)
commit641842bce295ec17cca52d34cfaa6765e097bb18
tree108cf11b5dbfd5fae24fc95c8cc848ef54198bad
parent864fde8a087c0edbc0ee3aca83f9289fc32cfcee
keymap: continue reading keymap after invalid scancodes

Reading of keymaps is aborted when EINVAL is returned from EVIOCGETKEYCODE.
Scan codes are not always continuous ranges of values starting at 0, so this
can result in not getting the full keymap for a device. Instead, continue
processing if EINVAL is returned.
extras/keymap/keymap.c