Commit ad6d9627 authored by Fernando Guzman Lugo's avatar Fernando Guzman Lugo Committed by Hiroshi DOYU
Browse files

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.

Signed-off-by: default avatarFernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
parent 9fe6206f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -298,11 +298,10 @@ static int omap_mbox_startup(struct omap_mbox *mbox)

static void omap_mbox_fini(struct omap_mbox *mbox)
{
	free_irq(mbox->irq, mbox);
	mbox_queue_free(mbox->txq);
	mbox_queue_free(mbox->rxq);

	free_irq(mbox->irq, mbox);

	if (unlikely(mbox->ops->shutdown)) {
		write_lock(&mboxes_lock);
		if (mbox_configured > 0)