summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-02-18 08:30:52 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-02-21 01:02:34 -0800
commit163d27706bb91a648cc292151fc072e1e8cd4b4d (patch)
tree9779106dc86b5da5e8493b77987455c46b626e6f /drivers/input
parent919ed895f0b4227da26ea1b0a1347db5010f105e (diff)
downloadblackbird-obmc-linux-163d27706bb91a648cc292151fc072e1e8cd4b4d.tar.gz
blackbird-obmc-linux-163d27706bb91a648cc292151fc072e1e8cd4b4d.zip
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>
Diffstat (limited to 'drivers/input')
-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
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;
OpenPOWER on IntegriCloud