aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/misc/uinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c
index 7f8331f45bad..364bdf43a381 100644
--- a/drivers/input/misc/uinput.c
+++ b/drivers/input/misc/uinput.c
@@ -362,7 +362,7 @@ static int uinput_setup_device(struct uinput_device *udev, const char __user *bu
362 dev = udev->dev; 362 dev = udev->dev;
363 363
364 user_dev = memdup_user(buffer, sizeof(struct uinput_user_dev)); 364 user_dev = memdup_user(buffer, sizeof(struct uinput_user_dev));
365 if (!IS_ERR(user_dev)) 365 if (IS_ERR(user_dev))
366 return PTR_ERR(user_dev); 366 return PTR_ERR(user_dev);
367 367
368 udev->ff_effects_max = user_dev->ff_effects_max; 368 udev->ff_effects_max = user_dev->ff_effects_max;