Skip to content

Commit 6eab7ce

Browse files
error27dtor
authored andcommitted
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: Dan Carpenter <error27@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
1 parent 4fd9fcf commit 6eab7ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/input/misc/kxtj9.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static ssize_t kxtj9_set_poll(struct device *dev, struct device_attribute *attr,
362362
return error;
363363

364364
/* Lock the device to prevent races with open/close (and itself) */
365-
mutex_unlock(&input_dev->mutex);
365+
mutex_lock(&input_dev->mutex);
366366

367367
disable_irq(client->irq);
368368

0 commit comments

Comments
 (0)