Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 703f12672e1f ("Input: ims-pcu - switch to using cleanup functions")
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20240910-input-misc-ims-pcu-fix-mutex-intr-v1-1-bdd983685c43@baylibre.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

David Lechner and committed by
Dmitry Torokhov
82abef59 4172a64e

+1 -1
+1 -1
drivers/input/misc/ims-pcu.c
··· 1067 1067 if (data_len > attr->field_length) 1068 1068 return -EINVAL; 1069 1069 1070 - scoped_cond_guard(mutex, return -EINTR, &pcu->cmd_mutex) { 1070 + scoped_cond_guard(mutex_intr, return -EINTR, &pcu->cmd_mutex) { 1071 1071 memset(field, 0, attr->field_length); 1072 1072 memcpy(field, buf, data_len); 1073 1073