Skip to content

Commit

Permalink
Input: kxtj9 - fix locking typo in kxtj9_set_poll()
Browse files Browse the repository at this point in the history
According to the comments we want to call mutex_lock() here instead
of mutex_unlock().  That makes more sense.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dan Carpenter authored and Dmitry Torokhov committed Jul 20, 2011
1 parent 4fd9fcf commit 6eab7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/misc/kxtj9.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static ssize_t kxtj9_set_poll(struct device *dev, struct device_attribute *attr,
return error;

/* 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);

Expand Down

0 comments on commit 6eab7ce

Please sign in to comment.