From: Arina Kharlamova When the resume fails, wlcore_op_sta_statistics() jumps to out_sleep, which calls pm_runtime_put_autosuspend(). The usage count was never taken, so this drops a count that belongs to someone else. The bug came with the switch to runtime PM: the error path then called pm_runtime_put_noidle() and still jumped to out_sleep, so the count was dropped twice. The later conversion to pm_runtime_resume_and_get() removed the put_noidle() but kept the jump. Jump to out instead, like the other callers in this file. Fixes: fa2648a34e73 ("wlcore: Add support for runtime PM") Signed-off-by: Arina Kharlamova --- Found by checks derived from the spec2patch kernel API specifications, with the help of an AI coding assistant (Claude); I reviewed the analysis and the fix. --- drivers/net/wireless/ti/wlcore/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 26aabf4ea127..94ad11b8d74e 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -5811,7 +5811,7 @@ static void wlcore_op_sta_statistics(struct ieee80211_hw *hw, ret = pm_runtime_resume_and_get(wl->dev); if (ret < 0) - goto out_sleep; + goto out; ret = wlcore_acx_average_rssi(wl, wlvif, &rssi_dbm); if (ret < 0) --- base-commit: 25faec9ce61c01fb45abf812a222c5b43c3cd5c5 change-id: 20261129-s2p-c07-336716c9acd5 Best regards, -- Arina Kharlamova