Loading drivers/char/keyboard.c +2 −2 Original line number Diff line number Diff line Loading @@ -198,10 +198,10 @@ int setkeycode(unsigned int scancode, unsigned int keycode) if (scancode >= dev->keycodemax) return -EINVAL; if (keycode > KEY_MAX) return -EINVAL; if (keycode < 0 || keycode > KEY_MAX) return -EINVAL; if (keycode >> (dev->keycodesize * 8)) return -EINVAL; oldkey = SET_INPUT_KEYCODE(dev, scancode, keycode); Loading drivers/input/evdev.c +1 −0 Original line number Diff line number Diff line Loading @@ -320,6 +320,7 @@ static long evdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) if (t < 0 || t >= dev->keycodemax || !dev->keycodesize) return -EINVAL; if (get_user(v, ip + 1)) return -EFAULT; if (v < 0 || v > KEY_MAX) return -EINVAL; if (v >> (dev->keycodesize * 8)) return -EINVAL; u = SET_INPUT_KEYCODE(dev, t, v); clear_bit(u, dev->keybit); set_bit(v, dev->keybit); Loading Loading
drivers/char/keyboard.c +2 −2 Original line number Diff line number Diff line Loading @@ -198,10 +198,10 @@ int setkeycode(unsigned int scancode, unsigned int keycode) if (scancode >= dev->keycodemax) return -EINVAL; if (keycode > KEY_MAX) return -EINVAL; if (keycode < 0 || keycode > KEY_MAX) return -EINVAL; if (keycode >> (dev->keycodesize * 8)) return -EINVAL; oldkey = SET_INPUT_KEYCODE(dev, scancode, keycode); Loading
drivers/input/evdev.c +1 −0 Original line number Diff line number Diff line Loading @@ -320,6 +320,7 @@ static long evdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) if (t < 0 || t >= dev->keycodemax || !dev->keycodesize) return -EINVAL; if (get_user(v, ip + 1)) return -EFAULT; if (v < 0 || v > KEY_MAX) return -EINVAL; if (v >> (dev->keycodesize * 8)) return -EINVAL; u = SET_INPUT_KEYCODE(dev, t, v); clear_bit(u, dev->keybit); set_bit(v, dev->keybit); Loading