Skip to content

Commit 82abef5

Browse files
dlechdtor
authored andcommitted
Input: ims-pcu - fix calling interruptible mutex
Fix calling scoped_cond_guard() with mutex instead of mutex_intr. scoped_cond_guard(mutex, ...) will call mutex_lock() instead of mutex_lock_interruptible(). Fixes: 703f126 ("Input: ims-pcu - switch to using cleanup functions") Signed-off-by: David Lechner <[email protected]> Link: https://lore.kernel.org/r/20240910-input-misc-ims-pcu-fix-mutex-intr-v1-1-bdd983685c43@baylibre.com Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 4172a64 commit 82abef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/misc/ims-pcu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ static ssize_t ims_pcu_attribute_store(struct device *dev,
10671067
if (data_len > attr->field_length)
10681068
return -EINVAL;
10691069

1070-
scoped_cond_guard(mutex, return -EINTR, &pcu->cmd_mutex) {
1070+
scoped_cond_guard(mutex_intr, return -EINTR, &pcu->cmd_mutex) {
10711071
memset(field, 0, attr->field_length);
10721072
memcpy(field, buf, data_len);
10731073

0 commit comments

Comments
 (0)