Commit 6eab7ce6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Dmitry Torokhov

Input: kxtj9 - fix locking typo in kxtj9_set_poll()

According to the comments we want to call mutex_lock() here instead
of mutex_unlock().  That makes more sense.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 4fd9fcf7
...@@ -362,7 +362,7 @@ static ssize_t kxtj9_set_poll(struct device *dev, struct device_attribute *attr, ...@@ -362,7 +362,7 @@ static ssize_t kxtj9_set_poll(struct device *dev, struct device_attribute *attr,
return error; return error;
/* Lock the device to prevent races with open/close (and itself) */ /* Lock the device to prevent races with open/close (and itself) */
mutex_unlock(&input_dev->mutex); mutex_lock(&input_dev->mutex);
disable_irq(client->irq); disable_irq(client->irq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment