[PATCH] media: i2c: t4ka3: drop unmatched runtime PM put
From: Guangshuo Li
Date: Tue Sep 15 2026 - 05:26:13 EST
t4ka3_probe() marks the device runtime active and enables runtime PM,
but does not increment the runtime PM usage counter. Nevertheless, the
probe failure path calls pm_runtime_put_noidle(), which has no matching
runtime PM get operation.
pm_runtime_put_noidle() currently does not decrement usage_count when
it is already zero, so the call is ineffective. Remove the unmatched
put to keep the runtime PM reference handling balanced and avoid
misleading cleanup code.
This issue was found by manual code inspection.
Fixes: fd55319692151 ("media: Add t4ka3 camera sensor driver")
Signed-off-by: Guangshuo Li <lgs201920130244@xxxxxxxxx>
---
drivers/media/i2c/t4ka3.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/media/i2c/t4ka3.c b/drivers/media/i2c/t4ka3.c
index a5a68e3fbec2..bf48a56f5a91 100644
--- a/drivers/media/i2c/t4ka3.c
+++ b/drivers/media/i2c/t4ka3.c
@@ -1034,7 +1034,6 @@ static int t4ka3_probe(struct i2c_client *client)
err_pm_disable:
pm_runtime_disable(&client->dev);
- pm_runtime_put_noidle(&client->dev);
t4ka3_pm_suspend(&client->dev);
return ret;
--
2.43.0