Message ID | 1287409524-3032-2-git-send-email-zonque@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f9ce6eb5b6fa8cbcf0a0fb7c5f4203f94730fc52 |
Headers | show |
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index afb64cf..9ddafc3 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))) {