Thread (18 messages) 18 messages, 4 authors, 2026-08-13

[PATCH v45 6/7] synchronize IRQ before releasing shared memory

COLD53d

From: Adam Young <hidden>
Date: 2026-07-21 17:53:29
Also in: lkml
Subsystem: acpi pcc(platform communication channel) mailbox driver, mailbox api, the rest · Maintainers: Sudeep Holla, Jassi Brar, Linus Torvalds

Make sure a final interrupt request does not
asccess the shared buffer after it has been release.

Signed-off-by: Adam Young <redacted>
---
 drivers/mailbox/pcc.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c
index b9a01bfdc95d..2ce2afd255f0 100644
--- a/drivers/mailbox/pcc.c
+++ b/drivers/mailbox/pcc.c
@@ -537,6 +537,7 @@ static void pcc_shutdown(struct mbox_chan *chan)
 
 	if (pchan->plat_irq > 0)
 		devm_free_irq(chan->mbox->dev, pchan->plat_irq, chan);
+	synchronize_irq(pchan->plat_irq);
 
 	pcc_mbox_chan = &pchan->chan;
 	if (pcc_mbox_chan->shmem) {
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help