Commit f9ce6eb5 authored by Daniel Mack's avatar Daniel Mack Committed by Dmitry Torokhov

Input: evdev - fix EVIOCSABS regression

448cd166 ("Input: evdev - rearrange ioctl handling") broke EVIOCSABS by
checking for the wrong direction bit.
Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
Reported-by: default avatarSven Neumann <s.neumann@raumfeld.com>
Tested-by: default avatarSven Neumann <s.neumann@raumfeld.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 0a74a1df
......@@ -683,7 +683,7 @@ static long evdev_do_ioctl(struct file *file, unsigned int cmd,
}
}
if (_IOC_DIR(cmd) == _IOC_READ) {
if (_IOC_DIR(cmd) == _IOC_WRITE) {
if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCSABS(0))) {
......
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