Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Mailbox: flush pending deferred works before freeing blk queue



flush pending deferred works before freeing blk_queue to prevent
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 ad6d9627
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -299,6 +299,8 @@ static int omap_mbox_startup(struct omap_mbox *mbox)
static void omap_mbox_fini(struct omap_mbox *mbox)
{
	free_irq(mbox->irq, mbox);
	tasklet_kill(&mbox->txq->tasklet);
	flush_work(&mbox->rxq->work);
	mbox_queue_free(mbox->txq);
	mbox_queue_free(mbox->rxq);