media: i2c: t4ka3: drop unmatched runtime PM put
Subsystems (2)
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")
Signed-off-by Guangshuo Li <[email protected]>
--- drivers/media/i2c/t4ka3.c | 1 - 1 file changed, 1 deletion(-)
drivers/media/i2c/t4ka3.c +0 -1
@@ -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