diff options
Diffstat (limited to 'drivers/input/evdev.c')
| -rw-r--r-- | drivers/input/evdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index a06e12552886..ce953d895f5b 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c | |||
| @@ -954,11 +954,13 @@ static long evdev_do_ioctl(struct file *file, unsigned int cmd, | |||
| 954 | return -EFAULT; | 954 | return -EFAULT; |
| 955 | 955 | ||
| 956 | error = input_ff_upload(dev, &effect, file); | 956 | error = input_ff_upload(dev, &effect, file); |
| 957 | if (error) | ||
| 958 | return error; | ||
| 957 | 959 | ||
| 958 | if (put_user(effect.id, &(((struct ff_effect __user *)p)->id))) | 960 | if (put_user(effect.id, &(((struct ff_effect __user *)p)->id))) |
| 959 | return -EFAULT; | 961 | return -EFAULT; |
| 960 | 962 | ||
| 961 | return error; | 963 | return 0; |
| 962 | } | 964 | } |
| 963 | 965 | ||
| 964 | /* Multi-number variable-length handlers */ | 966 | /* Multi-number variable-length handlers */ |
