[PATCH v45 6/7] synchronize IRQ before releasing shared memory
From: Adam Young
Date: Tue Jul 21 2026 - 14:19:14 EST
Make sure a final interrupt request does not
asccess the shared buffer after it has been release.
Signed-off-by: Adam Young <admiyo@xxxxxxxxxxxxxxxxxxxxxx>
---
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