Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Input: evdev - fix EVIOCSABS regression
448cd16 ("Input: evdev - rearrange ioctl handling") broke EVIOCSABS by
checking for the wrong direction bit.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Sven Neumann <s.neumann@raumfeld.com>
Tested-by: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
zonque authored and dtor committed Oct 18, 2010
1 parent 0a74a1d commit f9ce6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/evdev.c
Expand Up @@ -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))) {

Expand Down

0 comments on commit f9ce6eb

Please sign in to comment.