From: Daniel Mack Date: Mon, 18 Oct 2010 15:43:50 +0000 (-0700) Subject: Input: evdev - fix EVIOCSABS regression X-Git-Tag: v2.6.36~7^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f9ce6eb5b6fa8cbcf0a0fb7c5f4203f94730fc52;p=uclinux-h8%2Flinux.git 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 Reported-by: Sven Neumann Tested-by: Sven Neumann Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index afb64cf3748d..9ddafc30f432 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c @@ -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))) {