diff options
author | Daniel Mack <zonque@gmail.com> | 2010-10-18 17:43:50 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-10-18 17:45:08 +0200 |
commit | f9ce6eb5b6fa8cbcf0a0fb7c5f4203f94730fc52 (patch) | |
tree | 9bc3e516e458a7982e608c4dd0cb7cf3080dd6cc /drivers | |
parent | Input: evdev - fix Ooops in EVIOCGABS/EVIOCSABS (diff) | |
download | linux-f9ce6eb5b6fa8cbcf0a0fb7c5f4203f94730fc52.tar.xz linux-f9ce6eb5b6fa8cbcf0a0fb7c5f4203f94730fc52.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/evdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
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))) { |