Skip to contentSkip to conversation

Mailbox: free mailbox interrupt before freeing blk queue

PATCH New Fernando Guzman Lugo 1 participant 1 message Feb 13, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Mailbox: free mailbox interrupt before freeing blk queue

Free interrupt before freeing blk_queue to avoid any attempt of access to blk_queue after it was freed.

---
 arch/arm/plat-omap/mailbox.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/arm/plat-omap/mailbox.c +0 -0
index 8e90633..e6cc4b0 100644
@@ -296,11 +296,10 @@ static int omap_mbox_startup(struct omap_mbox *mbox)

=20
static void omap_mbox_fini(struct omap_mbox *mbox) {
+ free_irq(mbox->irq, mbox);
mbox_queue_free(mbox->txq); mbox_queue_free(mbox->rxq);
=20
- free_irq(mbox->irq, mbox);
-
if (unlikely(mbox->ops->shutdown)) {
write_lock(&mboxes_lock); if (mbox_configured > 0)
--=20
1.6.0.4