* [PATCH 0/1] slimbus: fixes for 7.3
@ 2026-10-02 10:14 srini
2026-10-02 10:14 ` [PATCH 1/1] slimbus: messaging: fix leaked PM vote on tid allocation failure srini
0 siblings, 1 reply; 2+ messages in thread
From: srini @ 2026-10-02 10:14 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Srinivas Kandagatla
From: Srinivas Kandagatla <srini@kernel.org>
Hi Greg,
Here is a slimbus fix for 7.3, Could you please queue
this for 7.3.
Patches include
- messaging: fix leaked PM vote when slim_alloc_txn_tid()
fails in slim_do_transfer()
Thanks,
Srini
Zongmin Zhou (1):
slimbus: messaging: fix leaked PM vote on tid allocation failure
drivers/slimbus/messaging.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.53.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] slimbus: messaging: fix leaked PM vote on tid allocation failure
2026-10-02 10:14 [PATCH 0/1] slimbus: fixes for 7.3 srini
@ 2026-10-02 10:14 ` srini
0 siblings, 0 replies; 2+ messages in thread
From: srini @ 2026-10-02 10:14 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Zongmin Zhou, stable, Srinivas Kandagatla
From: Zongmin Zhou <zhouzongmin@kylinos.cn>
In slim_do_transfer(), when a transaction needs a tid and
slim_alloc_txn_tid() fails, the function returns directly instead of
jumping to slim_xfer_err. The runtime PM vote taken earlier with
pm_runtime_get_sync() is then never released, leaving the controller
permanently powered up.
As txn->tid is still 0 at that point, jumping to slim_xfer_err drops
the vote exactly like it is done for other failed transactions.
Fixes: d3062a2109309 ("slimbus: messaging: add slim_alloc/free_txn_tid()")
Cc: stable@vger.kernel.org
Signed-off-by: Zongmin Zhou <zhouzongmin@kylinos.cn>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
drivers/slimbus/messaging.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c
index e2dbe4a66b70..ee127ef42046 100644
--- a/drivers/slimbus/messaging.c
+++ b/drivers/slimbus/messaging.c
@@ -139,7 +139,7 @@ int slim_do_transfer(struct slim_controller *ctrl, struct slim_msg_txn *txn)
if (need_tid) {
ret = slim_alloc_txn_tid(ctrl, txn);
if (ret)
- return ret;
+ goto slim_xfer_err;
if (!txn->msg->comp)
txn->comp = &done;
--
2.53.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-02 10:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-02 10:14 [PATCH 0/1] slimbus: fixes for 7.3 srini
2026-10-02 10:14 ` [PATCH 1/1] slimbus: messaging: fix leaked PM vote on tid allocation failure srini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®