Skip to contentSkip to conversation

media: i2c: t4ka3: drop unmatched runtime PM put

PATCH New Guangshuo Li 1 participant 1 message Sep 15

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

PATCH 1/1 media: i2c: t4ka3: drop unmatched runtime PM put

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")
---
 drivers/media/i2c/t4ka3.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/i2c/t4ka3.c +0 -1
index a5a68e3fbec2..bf48a56f5a91 100644
@@ -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;
Signature · 1 line
2.43.0