diff options
Diffstat (limited to 'drivers/input/input-compat.c')
| -rw-r--r-- | drivers/input/input-compat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/input-compat.c b/drivers/input/input-compat.c index 64ca7113ff28..d84d20b9cec0 100644 --- a/drivers/input/input-compat.c +++ b/drivers/input/input-compat.c | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | int input_event_from_user(const char __user *buffer, | 17 | int input_event_from_user(const char __user *buffer, |
| 18 | struct input_event *event) | 18 | struct input_event *event) |
| 19 | { | 19 | { |
| 20 | if (INPUT_COMPAT_TEST && !COMPAT_USE_64BIT_TIME) { | 20 | if (in_compat_syscall() && !COMPAT_USE_64BIT_TIME) { |
| 21 | struct input_event_compat compat_event; | 21 | struct input_event_compat compat_event; |
| 22 | 22 | ||
| 23 | if (copy_from_user(&compat_event, buffer, | 23 | if (copy_from_user(&compat_event, buffer, |
| @@ -41,7 +41,7 @@ int input_event_from_user(const char __user *buffer, | |||
| 41 | int input_event_to_user(char __user *buffer, | 41 | int input_event_to_user(char __user *buffer, |
| 42 | const struct input_event *event) | 42 | const struct input_event *event) |
| 43 | { | 43 | { |
| 44 | if (INPUT_COMPAT_TEST && !COMPAT_USE_64BIT_TIME) { | 44 | if (in_compat_syscall() && !COMPAT_USE_64BIT_TIME) { |
| 45 | struct input_event_compat compat_event; | 45 | struct input_event_compat compat_event; |
| 46 | 46 | ||
| 47 | compat_event.time.tv_sec = event->time.tv_sec; | 47 | compat_event.time.tv_sec = event->time.tv_sec; |
| @@ -65,7 +65,7 @@ int input_event_to_user(char __user *buffer, | |||
| 65 | int input_ff_effect_from_user(const char __user *buffer, size_t size, | 65 | int input_ff_effect_from_user(const char __user *buffer, size_t size, |
| 66 | struct ff_effect *effect) | 66 | struct ff_effect *effect) |
| 67 | { | 67 | { |
| 68 | if (INPUT_COMPAT_TEST) { | 68 | if (in_compat_syscall()) { |
| 69 | struct ff_effect_compat *compat_effect; | 69 | struct ff_effect_compat *compat_effect; |
| 70 | 70 | ||
| 71 | if (size != sizeof(struct ff_effect_compat)) | 71 | if (size != sizeof(struct ff_effect_compat)) |
