Skip to contentSkip to conversation

Input: ims-pcu - fix a mutex usage error

PATCH In review Donglin Peng 2 participants 2 messages Sep 21, 2024 – Sep 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: ims-pcu - fix a mutex usage error

The mutex_lock_interruptible should be switched to scoped_cond_guard(mutex_intr, ...) instead of scoped_cond_guard(mutex, ..).

Fixes 703f12672e1f ("Input: ims-pcu - switch to using cleanup functions")
---
 drivers/input/misc/ims-pcu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/misc/ims-pcu.c +1 -1
index c086dadb45e3..058f3470b7ae 100644
@@ -1067,7 +1067,7 @@ static ssize_t ims_pcu_attribute_store(struct device *dev,
 	if (data_len > attr->field_length)
 		return -EINVAL;
 
-	scoped_cond_guard(mutex, return -EINTR, &pcu->cmd_mutex) {
+	scoped_cond_guard(mutex_intr, return -EINTR, &pcu->cmd_mutex) {
 		memset(field, 0, attr->field_length);
 		memcpy(field, buf, data_len);
 
Signature · 1 line
2.25.1