From 86331b76b32d7a83fb3e64641a5111746bf0f50c Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Tue, 20 Oct 2026 08:38:52 +0100 Subject: [PATCH] ASoC: SDCA: drop pm_runtime reference on probe failure path sdca_class_probe() takes an extra usage count with pm_runtime_get_noresume() to keep the device powered on until the deferred boot work has run. If devm_pm_runtime_enable() then fails, that reference is never dropped. Drop it on the error path. Fixes: 2d877d0659cb ("ASoC: SDCA: Add basic SDCA class driver") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Srinivas Kandagatla Reviewed-by: Charles Keepax Link: https://patch.msgid.link/20261020073856.1177749-3-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown --- sound/soc/sdca/sdca_class.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/sdca/sdca_class.c b/sound/soc/sdca/sdca_class.c index bcc660aeb739..ca311209c6d1 100644 --- a/sound/soc/sdca/sdca_class.c +++ b/sound/soc/sdca/sdca_class.c @@ -197,8 +197,10 @@ int sdca_class_probe(struct sdw_slave *sdw, pm_runtime_get_noresume(dev); ret = devm_pm_runtime_enable(dev); - if (ret) + if (ret) { + pm_runtime_put_sync(dev); return ret; + } queue_work(system_long_wq, &drv->boot_work);