mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-21 13:03:52 +07:00
Input: uinput - reversed test in uinput_setup_device()
The test here is reversed. It should be if (IS_ERR()) instead of if (!IS_ERR()). Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
919ed895f0
commit
163d27706b
@ -362,7 +362,7 @@ static int uinput_setup_device(struct uinput_device *udev, const char __user *bu
|
||||
dev = udev->dev;
|
||||
|
||||
user_dev = memdup_user(buffer, sizeof(struct uinput_user_dev));
|
||||
if (!IS_ERR(user_dev))
|
||||
if (IS_ERR(user_dev))
|
||||
return PTR_ERR(user_dev);
|
||||
|
||||
udev->ff_effects_max = user_dev->ff_effects_max;
|
||||
|
Loading…
Reference in New Issue
Block a user